1022 references to Func
Aspire.Cli.Tests (24)
Projects\ProjectUpdaterTests.cs (1)
1654Func<DirectoryInfo, ProcessInvocationOptions, CancellationToken, (int, string[])>? getNuGetConfigPathsCallback = null)
TestServices\TestAppHostAuxiliaryBackchannel.cs (1)
75public Func<string?, bool, CancellationToken, IAsyncEnumerable<ResourceLogLine>>? GetResourceLogsHandler { get; set; }
TestServices\TestAppHostCliBackchannel.cs (1)
282public Func<string, string, CancellationToken, Task<UploadFileResponse>>? UploadFileAsyncCallback { get; set; }
TestServices\TestDcpConnectionChecker.cs (1)
10public Func<string, bool, CancellationToken, Task<EnvironmentCheckResult>>? TestConnectionAsyncCallback { get; set; }
TestServices\TestDotNetCliRunner.cs (4)
17public Func<FileInfo, ProcessInvocationOptions, CancellationToken, int>? RestoreAsyncCallback { get; set; } 18public Func<FileInfo, ProcessInvocationOptions, CancellationToken, (int ExitCode, bool IsAspireHost, string? AspireHostingVersion)>? GetAppHostInformationAsyncCallback { get; set; } 19public Func<DirectoryInfo, ProcessInvocationOptions, CancellationToken, (int ExitCode, string[] ConfigPaths)>? GetNuGetConfigPathsAsyncCallback { get; set; } 30public Func<FileInfo, ProcessInvocationOptions, CancellationToken, (int ExitCode, IReadOnlyList<FileInfo> Projects)>? GetSolutionProjectsAsyncCallback { get; set; }
TestServices\TestExtensionBackchannel.cs (3)
57public Func<string, Func<string, ValidationResult>?, bool, Task<string>>? PromptForSecretStringAsyncCallback { get; set; } 60public Func<string, string?, bool, Task<string?>>? PromptForFilePathAsyncCallback { get; set; } 86public Func<string, bool, string?, Task>? WriteDebugSessionMessageAsyncCallback { get; set; }
TestServices\TestLanguageService.cs (3)
11public Func<IAppHostProject, bool, CancellationToken, Task>? SetLanguageAsyncCallback { get; set; } 13public Func<string?, bool, CancellationToken, Task<IAppHostProject>>? GetOrPromptForProjectAsyncCallback { get; set; } 14public Func<string?, bool, CancellationToken, Task<AppHostProjectSelection>>? GetOrPromptForProjectSelectionAsyncCallback { get; set; }
TestServices\TestProcessExecutionFactory.cs (5)
47public Func<int, ProcessInvocationOptions, CancellationToken, Task<(int ExitCode, string? Stdout)>>? AsyncAttemptCallback { get; set; } 104var asyncAttemptCallback = AsyncAttemptCallback; 106var callback = asyncAttemptCallback ?? 142private readonly Func<int, ProcessInvocationOptions, CancellationToken, Task<(int ExitCode, string? Stdout)>> _attemptCallback; 153Func<int, ProcessInvocationOptions, CancellationToken, Task<(int ExitCode, string? Stdout)>> attemptCallback,
TestServices\TestProjectLocator.cs (3)
12public Func<FileInfo?, bool, CancellationToken, Task<FileInfo?>>? UseOrFindAppHostProjectFileAsyncCallback { get; set; } 18public Func<DirectoryInfo, AppHostDiscoveryScope, CancellationToken, Task<List<AppHostProjectCandidate>>>? FindAppHostProjectsAsyncCallback { get; set; } 22public Func<DirectoryInfo, AppHostDiscoveryScope, CancellationToken, Task<List<FileInfo>>>? FindAppHostProjectFilesAsyncCallback { get; set; }
TestServices\TestTypeScriptStarterProjectFactory.cs (2)
9internal sealed class TestTypeScriptStarterProjectFactory(Func<DirectoryInfo, CancellationToken, string?, Task<bool>> buildAndGenerateSdkAsync) : IAppHostProjectFactory 44internal sealed class TestTypeScriptStarterProject(Func<DirectoryInfo, CancellationToken, string?, Task<bool>> buildAndGenerateSdkAsync) : IAppHostProject, IGuestAppHostSdkGenerator
Aspire.Hosting (8)
DistributedApplicationEventingExtensions.cs (7)
60public static IResourceBuilder<T> OnBeforeResourceStarted<T>(this IResourceBuilder<T> builder, Func<T, BeforeResourceStartedEvent, CancellationToken, Task> callback) 73public static IResourceBuilder<T> OnResourceStopped<T>(this IResourceBuilder<T> builder, Func<T, ResourceStoppedEvent, CancellationToken, Task> callback) 86public static IResourceBuilder<T> OnConnectionStringAvailable<T>(this IResourceBuilder<T> builder, Func<T, ConnectionStringAvailableEvent, CancellationToken, Task> callback) 99public static IResourceBuilder<T> OnInitializeResource<T>(this IResourceBuilder<T> builder, Func<T, InitializeResourceEvent, CancellationToken, Task> callback) 112public static IResourceBuilder<T> OnResourceEndpointsAllocated<T>(this IResourceBuilder<T> builder, Func<T, ResourceEndpointsAllocatedEvent, CancellationToken, Task> callback) 125public static IResourceBuilder<T> OnResourceReady<T>(this IResourceBuilder<T> builder, Func<T, ResourceReadyEvent, CancellationToken, Task> callback) 137private static IResourceBuilder<TResource> OnResourceEvent<TResource, TEvent>(this IResourceBuilder<TResource> builder, Func<TResource, TEvent, CancellationToken, Task> callback)
InteractionService.cs (1)
471internal async Task ProcessInteractionFromClientAsync(int interactionId, Func<Interaction, IServiceProvider, ILogger, InteractionCompletionState> createResult, CancellationToken cancellationToken)
Aspire.Hosting.Azure (1)
AzureProvisioningController.cs (1)
4360Func<AzureProvisioningController, string, ExecuteCommandContext, Task<ExecuteCommandResult>> ExecuteCommand,
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
32internal Func<string, string, ILogger, Task<AzCommandResult>>? AzCommandRunnerForTesting { get; set; }
Aspire.Hosting.Azure.Tests (4)
ExistingAzureResourceExtensionsTests.cs (2)
103public static TheoryData<Func<string, string, string, IResourceBuilder<IAzureResource>>> AsExistingMethodsWithString => 112public void CanCallAsExistingWithStringArguments(Func<string, string, string, IResourceBuilder<IAzureResource>> runAsExisting)
ProvisioningTestHelpers.cs (2)
213private readonly Func<string, string, CancellationToken, Task<IEnumerable<string>>>? _supportedLocationsProvider; 249Func<string, string, CancellationToken, Task<IEnumerable<string>>>? supportedLocationsProvider = null)
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
831Func<EFCoreOperationExecutor, ILogger, IInteractionService?, Task<ExecuteCommandResult>> executeOperation)
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
346string entrypoint, string virtualEnvironmentPath, Func<string, string, string, T> createResource) where T : PythonAppResource
Aspire.Hosting.Tests (2)
Dcp\TestKubernetesService.cs (2)
29private readonly Func<CustomResource, string, bool?, Stream> _startStream; 38Func<CustomResource, string, bool?, Stream>? startStreamWithFollow = null)
dotnet (2)
Commands\New\PostActions\DotnetAddPostActionProcessor.cs (2)
13Func<string, string, string?, bool>? addPackageReferenceCallback = null, 16private readonly Func<string, string, string?, bool> _addPackageReferenceCallback = addPackageReferenceCallback ?? DotnetCommandCallbacks.AddPackageReference;
GenerateDocumentationAndConfigFiles (55)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
48Func<TKey, TValue, TArg, TValue> updateValueFactory,
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (4)
168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
317public void RemoveAll<TArg>(Func<T, int, TArg, bool> match, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (8)
281public static Releaser GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction) 282=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>>(unboundFunction, argument, out boundFunction); 285/// Gets a <see cref="Func{T1, T2, T3, TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the 317public static Releaser GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction) 318=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>>(unboundFunction, argument, out boundFunction); 439: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>> 446: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>> 448protected override Func<T1, T2, T3, TResult> Bind()
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (15)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 67Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 90Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 104Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 160Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 174Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 226Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 322Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
342Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>> computeReplacementAsync, 364Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>> computeReplacementAsync, 377Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>> computeReplacementAsync, 390Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>>? computeReplacementNodeAsync, 392Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>>? computeReplacementTokenAsync, 394Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>>? computeReplacementTriviaAsync,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
196Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> relativeIndentationDeltaGetter = static (self, operation, effectiveBaseToken) =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (3)
44private readonly Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> _indentationDeltaGetter; 56public RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter) 70private RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter, int lazyIndentationDelta)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (2)
114public static void Log<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel = LogLevel.Debug) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (3)
29public static LogMessage Create<TArg0, TArg1, TArg2>(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel) 194private Func<TArg0, TArg1, TArg2, string>? _messageGetter; 199public static LogMessage Construct(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
263Func<BinaryReader, T[], int, int> read,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (6)
30Func<SemanticModel, TType, TNode, bool> canReplace, 53Func<SemanticModel, TType, TNode, bool> canReplace, 76Func<SemanticModel, SyntaxNode, TNode, SyntaxNode> updateRoot, 97Func<SemanticModel, TType, TNode, bool> canReplace, 120Func<SemanticModel, SyntaxNode, TNode, SyntaxNode> updateRoot, 155Func<SemanticModel, TType, TNode, bool> canReplace,
ILCompiler.Compiler (5)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
46public ResourceData(Internal.TypeSystem.Ecma.EcmaModule ecmaModule, Func<object, object, ushort, bool> resourceFilter = null)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Reader.cs (1)
16private void ReadResourceData(BlobReader resourceReader, PEReader peFile, Func<object, object, ushort, bool> resourceFilter)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (3)
73/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?)"/></item> 74/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool)"/></item> 75/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool, bool)"/></item>
ILCompiler.ReadyToRun (2)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
46public ResourceData(Internal.TypeSystem.Ecma.EcmaModule ecmaModule, Func<object, object, ushort, bool> resourceFilter = null)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Reader.cs (1)
16private void ReadResourceData(BlobReader resourceReader, PEReader peFile, Func<object, object, ushort, bool> resourceFilter)
illink (3)
ILLink.RoslynAnalyzer (3)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (3)
73/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?)"/></item> 74/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool)"/></item> 75/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool, bool)"/></item>
Microsoft.Analyzers.Extra (2)
LegacyLoggingFixer.cs (2)
41internal Func<SemanticModel, SyntaxNode, CancellationToken, IOperation?> GetOperation = (sm, sn, t) => sm.GetOperation(sn, t); 45internal Func<SemanticModel, BaseMethodDeclarationSyntax, CancellationToken, IMethodSymbol?> GetDeclaredSymbol = (sm, m, t) => sm.GetDeclaredSymbol(m, t);
Microsoft.AspNetCore.Components (3)
CascadingParameterValueProvider.cs (2)
13private readonly Func<ComponentState, TAttribute, CascadingParameterInfo, CascadingParameterSubscription> _subscribeFactory; 15public CascadingParameterValueProvider(Func<ComponentState, TAttribute, CascadingParameterInfo, CascadingParameterSubscription> subscribeFactory)
CascadingValueServiceCollectionExtensions.cs (1)
65Func<IServiceProvider, Func<ComponentState, TAttribute, CascadingParameterInfo, CascadingParameterSubscription>> subscribeFactory)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\AcceptanceTests.cs (1)
149Func<FakeLogCollector, HttpClient, IServiceProvider, Task> func)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\Server\InterceptorPipelineBuilder.cs (1)
139private T BuildPipeline<T>(T innerInvoker, Func<InterceptorRegistration, InterceptorActivators, T, T> wrapInvoker)
Microsoft.AspNetCore.Http (1)
Internal\ResponseCookies.cs (1)
120Func<string, string, CookieOptions, bool> rejectPredicate;
Microsoft.AspNetCore.Http.Abstractions (4)
Extensions\UseMiddlewareExtensions.cs (4)
139var factory = RuntimeFeature.IsDynamicCodeCompiled 200private static Func<T, HttpContext, IServiceProvider, Task> ReflectionFallback<T>(MethodInfo methodInfo, ParameterInfo[] parameters) 265private static Func<T, HttpContext, IServiceProvider, Task> CompileExpression<T>(MethodInfo methodInfo, ParameterInfo[] parameters) 323var lambda = Expression.Lambda<Func<T, HttpContext, IServiceProvider, Task>>(body, instanceArg, httpContextArg, providerArg);
Microsoft.AspNetCore.Http.Extensions (6)
RequestDelegateFactory.cs (6)
1270var continuation = Expression.Lambda<Func<object?, HttpContext, object?[], Task>>( 1355var continuation = Expression.Lambda<Func<object?, HttpContext, object?, Task>>( 1509var continuation = Expression.Lambda<Func<object?, HttpContext, object?, Task>>(
Microsoft.AspNetCore.Identity (18)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (18)
53using RequestDelegateFactoryFunc = System.Func<System.Delegate, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult?, Microsoft.AspNetCore.Http.RequestDelegateResult>; 81RequestDelegateFactoryFunc createRequestDelegate = (del, options, inferredMetadataResult) => 87var handler = Cast(del, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem>> (global::Microsoft.AspNetCore.Identity.Data.RegisterRequest arg0, global::Microsoft.AspNetCore.Http.HttpContext arg1, global::System.IServiceProvider arg2) => throw null!); 170var castHandler = Cast(handler, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem>> (global::Microsoft.AspNetCore.Identity.Data.RegisterRequest arg0, global::Microsoft.AspNetCore.Http.HttpContext arg1, global::System.IServiceProvider arg2) => throw null!); 201RequestDelegateFactoryFunc createRequestDelegate = (del, options, inferredMetadataResult) => 385RequestDelegateFactoryFunc createRequestDelegate = (del, options, inferredMetadataResult) => 502RequestDelegateFactoryFunc createRequestDelegate = (del, options, inferredMetadataResult) => 648RequestDelegateFactoryFunc createRequestDelegate = (del, options, inferredMetadataResult) => 654var handler = Cast(del, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Ok> (global::Microsoft.AspNetCore.Identity.Data.ResendConfirmationEmailRequest arg0, global::Microsoft.AspNetCore.Http.HttpContext arg1, global::System.IServiceProvider arg2) => throw null!); 737var castHandler = Cast(handler, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Ok> (global::Microsoft.AspNetCore.Identity.Data.ResendConfirmationEmailRequest arg0, global::Microsoft.AspNetCore.Http.HttpContext arg1, global::System.IServiceProvider arg2) => throw null!); 766RequestDelegateFactoryFunc createRequestDelegate = (del, options, inferredMetadataResult) => 882RequestDelegateFactoryFunc createRequestDelegate = (del, options, inferredMetadataResult) => 999RequestDelegateFactoryFunc createRequestDelegate = (del, options, inferredMetadataResult) => 1005var handler = Cast(del, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse>, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>> (global::System.Security.Claims.ClaimsPrincipal arg0, global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest arg1, global::System.IServiceProvider arg2) => throw null!); 1088var castHandler = Cast(handler, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse>, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>> (global::System.Security.Claims.ClaimsPrincipal arg0, global::Microsoft.AspNetCore.Identity.Data.TwoFactorRequest arg1, global::System.IServiceProvider arg2) => throw null!); 1116RequestDelegateFactoryFunc createRequestDelegate = (del, options, inferredMetadataResult) => 1221RequestDelegateFactoryFunc createRequestDelegate = (del, options, inferredMetadataResult) => 1331RequestDelegateFactoryFunc createRequestDelegate,
Microsoft.AspNetCore.JsonPatch (1)
Internal\DynamicObjectAdapter.cs (1)
222var callsite = CallSite<Func<CallSite, object, object, object>>.Create(binder);
Microsoft.AspNetCore.Mvc.RazorPages (9)
Infrastructure\DefaultPageActivatorProvider.cs (3)
16private readonly Func<PageContext, ViewContext, object, ValueTask> _asyncDisposer = AsyncDispose; 17private readonly Func<PageContext, ViewContext, object, ValueTask> _syncAsyncDisposer = SyncAsyncDispose; 48public Func<PageContext, ViewContext, object, ValueTask>? CreateAsyncReleaser(CompiledPageActionDescriptor actionDescriptor)
Infrastructure\DefaultPageFactoryProvider.cs (1)
77public Func<PageContext, ViewContext, object, ValueTask>? CreateAsyncPageDisposer(CompiledPageActionDescriptor descriptor)
Infrastructure\PageActionInvokerCache.cs (1)
78var pageDisposer = _pageFactoryProvider.CreateAsyncPageDisposer(compiledActionDescriptor);
Infrastructure\PageActionInvokerCacheEntry.cs (2)
18Func<PageContext, ViewContext, object, ValueTask>? releasePage, 47public Func<PageContext, ViewContext, object, ValueTask>? ReleasePage { get; }
IPageActivatorProvider.cs (1)
32Func<PageContext, ViewContext, object, ValueTask>? CreateAsyncReleaser(CompiledPageActionDescriptor descriptor)
IPageFactoryProvider.cs (1)
32Func<PageContext, ViewContext, object, ValueTask>? CreateAsyncPageDisposer(CompiledPageActionDescriptor descriptor)
Microsoft.AspNetCore.OpenApi (14)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (3)
53using RequestDelegateFactoryFunc = System.Func<System.Delegate, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult?, Microsoft.AspNetCore.Http.RequestDelegateResult>; 77RequestDelegateFactoryFunc createRequestDelegate = (del, options, inferredMetadataResult) => 169RequestDelegateFactoryFunc createRequestDelegate,
Extensions\OpenApiEndpointConventionBuilderExtensions.cs (1)
134public static TBuilder AddOpenApiOperationTransformer<TBuilder>(this TBuilder builder, Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> transformer) where TBuilder : IEndpointConventionBuilder
Services\OpenApiDocumentService.cs (1)
165Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> callback,
Services\OpenApiOptions.cs (3)
89public OpenApiOptions AddDocumentTransformer(Func<OpenApiDocument, OpenApiDocumentTransformerContext, CancellationToken, Task> transformer) 127public OpenApiOptions AddOperationTransformer(Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> transformer) 165public OpenApiOptions AddSchemaTransformer(Func<OpenApiSchema, OpenApiSchemaTransformerContext, CancellationToken, Task> transformer)
Transformers\DelegateOpenApiDocumentTransformer.cs (2)
8private readonly Func<OpenApiDocument, OpenApiDocumentTransformerContext, CancellationToken, Task> _documentTransformer; 10public DelegateOpenApiDocumentTransformer(Func<OpenApiDocument, OpenApiDocumentTransformerContext, CancellationToken, Task> transformer)
Transformers\DelegateOpenApiOperationTransformer.cs (2)
8private readonly Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> _transformer; 10public DelegateOpenApiOperationTransformer(Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> transformer)
Transformers\DelegateOpenApiSchemaTransformer.cs (2)
8private readonly Func<OpenApiSchema, OpenApiSchemaTransformerContext, CancellationToken, Task> _transformer; 10public DelegateOpenApiSchemaTransformer(Func<OpenApiSchema, OpenApiSchemaTransformerContext, CancellationToken, Task> transformer)
Microsoft.AspNetCore.OutputCaching (3)
Policies\PredicatePolicy.cs (1)
45private ValueTask ExecuteAwaited(Func<IOutputCachePolicy, OutputCacheContext, CancellationToken, ValueTask> action, IOutputCachePolicy policy, OutputCacheContext context, CancellationToken cancellationToken)
Policies\SetCacheKeyPrefixPolicy.cs (1)
13private readonly Func<HttpContext, CacheVaryByRules, CancellationToken, ValueTask> _varyByAsync;
Policies\VaryByValuePolicy.cs (1)
13private readonly Func<HttpContext, CacheVaryByRules, CancellationToken, ValueTask> _varyByAsync;
Microsoft.AspNetCore.Owin (4)
WebSockets\OwinWebSocketAdapter.cs (3)
10Func<int /* closeStatus */, 36private readonly WebSocketCloseAsync _closeAsync; 50_closeAsync = (WebSocketCloseAsync)websocketContext[OwinConstants.WebSocket.CloseAsync];
WebSockets\WebSocketAdapter.cs (1)
10Func<int /* closeStatus */,
Microsoft.AspNetCore.Razor.Utilities.Shared (13)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
317public void RemoveAll<TArg>(Func<T, int, TArg, bool> match, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (8)
281public static Releaser GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction) 282=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>>(unboundFunction, argument, out boundFunction); 285/// Gets a <see cref="Func{T1, T2, T3, TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the 317public static Releaser GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction) 318=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>>(unboundFunction, argument, out boundFunction); 439: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>> 446: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>> 448protected override Func<T1, T2, T3, TResult> Bind()
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ImmutableArrayExtensions.cs (3)
123public static ImmutableArray<TResult> SelectAsArray<T, TArg, TResult>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, int, TResult> selector) 235public static TResult[] SelectAsPlainArray<T, TArg, TResult>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, int, TResult> selector) 536public static ImmutableArray<T> WhereAsArray<T, TArg>(this ImmutableArray<T> array, TArg arg, Func<T, TArg, int, bool> predicate)
Microsoft.AspNetCore.Routing (14)
Builder\RouteHandlerServices.cs (2)
40Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?, RequestDelegateResult> createRequestDelegate) 70Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?, RequestDelegateResult> createRequestDelegate,
Matching\ILEmitTrieFactory.cs (3)
26public static Func<string, int, int, int> Create( 43return (Func<string, int, int, int>)method.CreateDelegate(typeof(Func<string, int, int, int>));
Matching\ILEmitTrieJumpTable.cs (1)
80var generated = ILEmitTrieFactory.Create(_defaultDestination, _exitDestination, _entries, _vectorize);
RequestDelegateRouteBuilderExtensions.cs (5)
91Func<HttpRequest, HttpResponse, RouteData, Task> handler) 133Func<HttpRequest, HttpResponse, RouteData, Task> handler) 175Func<HttpRequest, HttpResponse, RouteData, Task> handler) 217Func<HttpRequest, HttpResponse, RouteData, Task> handler) 235Func<HttpRequest, HttpResponse, RouteData, Task> handler)
RouteEndpointDataSource.cs (3)
37Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?, RequestDelegateResult> createHandlerRequestDelegateFunc, 65Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?, RequestDelegateResult> createHandlerRequestDelegateFunc, 348public required Func<Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult?, RequestDelegateResult> CreateHandlerRequestDelegateFunc { get; init; }
Microsoft.AspNetCore.Server.Kestrel.Core (3)
DirectTlsEndpointOptions.cs (1)
71public Func<X509Certificate2, X509Chain?, SslPolicyErrors, bool>? ClientCertificateValidation { get; set; }
HttpsConnectionAdapterOptions.cs (1)
73public Func<X509Certificate2, X509Chain?, SslPolicyErrors, bool>? ClientCertificateValidation { get; set; }
Middleware\HttpsConnectionMiddleware.cs (1)
408Func<X509Certificate2, X509Chain?, SslPolicyErrors, bool>? clientCertificateValidation,
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (1)
DirectTlsTransportFactory.cs (1)
216var userValidation = endpointOptions.ClientCertificateValidation;
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnectionExtensions.cs (1)
279public static IDisposable On<T1, T2, T3>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, Task> handler)
HubConnectionExtensions.OnResult.cs (2)
129public static IDisposable On<T1, T2, T3, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, TResult> handler) 309public static IDisposable On<T1, T2, T3, TResult>(this HubConnection hubConnection, string methodName, Func<T1, T2, T3, Task<TResult>> handler)
Microsoft.Build (17)
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
147private string RouteCall(string itemType, string name, Func<IMetadataTable, string, string, string> getEscapedValueFunc)
src\9f0d3f3da306d8cf\IEnumerableExtensions.cs (2)
526public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 538public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken)
src\9f0d3f3da306d8cf\ImmutableArrayExtensions.cs (4)
172public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 440public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 455public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 1267internal static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\ArrayBuilder.cs (2)
298public void RemoveAll<TArg>(Func<T, int, TArg, bool> match, TArg arg) 879public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\PooledDelegates.cs (8)
281public static Releaser GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction) 282=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>>(unboundFunction, argument, out boundFunction); 285/// Gets a <see cref="Func{T1, T2, T3, TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the 317public static Releaser GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction) 318=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>>(unboundFunction, argument, out boundFunction); 439: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>> 446: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>> 448protected override Func<T1, T2, T3, TResult> Bind()
Microsoft.Build.Tasks.Core (1)
Copy.cs (1)
398private void TryCopyViaLink(string linkComment, MessageImportance messageImportance, FileState sourceFileState, FileState destinationFileState, out bool linkCreated, ref string errorMessage, Func<string, string, string, bool> createLink)
Microsoft.CodeAnalysis (25)
DiagnosticAnalyzer\AnalyzerExecutor.cs (3)
45private readonly Func<SyntaxTree, TextSpan, CancellationToken, bool> _isGeneratedCodeLocation; 125Func<SyntaxTree, TextSpan, CancellationToken, bool> isGeneratedCodeLocation, 159Func<SyntaxTree, TextSpan, CancellationToken, bool> isGeneratedCodeLocation,
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
257Func<DiagnosticAnalyzer, AnalyzerExecutor, CancellationToken, ImmutableArray<TDescriptor>> computeDescriptorsNoLock,
InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
48Func<TKey, TValue, TArg, TValue> updateValueFactory,
MetadataReader\PEModule.cs (1)
1447Func<string, TypedConstant, bool, (bool IsCallConvs, ImmutableHashSet<INamedTypeSymbolInternal>? CallConvs)> unmanagedCallersOnlyDecoder)
MetadataReference\AssemblyIdentityMap.cs (1)
77public bool TryGetValue(AssemblyIdentity identity, out TValue value, Func<Version, Version, TValue, bool> comparer)
Operations\ControlFlowGraphBuilder.cs (2)
2007private ImmutableArray<T> PopArray<T>(ImmutableArray<T> originalArray, Func<IOperation, int, ImmutableArray<T>, T>? wrapper = null) where T : IOperation 2029private ImmutableArray<T> VisitArray<T>(ImmutableArray<T> originalArray, Func<T, IOperation>? unwrapper = null, Func<IOperation, int, ImmutableArray<T>, T>? wrapper = null) where T : IOperation
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (4)
168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
317public void RemoveAll<TArg>(Func<T, int, TArg, bool> match, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (8)
281public static Releaser GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction) 282=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>>(unboundFunction, argument, out boundFunction); 285/// Gets a <see cref="Func{T1, T2, T3, TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the 317public static Releaser GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction) 318=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>>(unboundFunction, argument, out boundFunction); 439: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>> 446: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>> 448protected override Func<T1, T2, T3, TResult> Bind()
Microsoft.CodeAnalysis.Analyzers (55)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
48Func<TKey, TValue, TArg, TValue> updateValueFactory,
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (4)
168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
317public void RemoveAll<TArg>(Func<T, int, TArg, bool> match, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (8)
281public static Releaser GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction) 282=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>>(unboundFunction, argument, out boundFunction); 285/// Gets a <see cref="Func{T1, T2, T3, TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the 317public static Releaser GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction) 318=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>>(unboundFunction, argument, out boundFunction); 439: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>> 446: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>> 448protected override Func<T1, T2, T3, TResult> Bind()
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (15)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 67Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 90Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 104Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 160Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 174Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 226Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 322Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
342Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>> computeReplacementAsync, 364Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>> computeReplacementAsync, 377Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>> computeReplacementAsync, 390Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>>? computeReplacementNodeAsync, 392Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>>? computeReplacementTokenAsync, 394Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>>? computeReplacementTriviaAsync,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
196Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> relativeIndentationDeltaGetter = static (self, operation, effectiveBaseToken) =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (3)
44private readonly Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> _indentationDeltaGetter; 56public RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter) 70private RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter, int lazyIndentationDelta)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (2)
114public static void Log<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel = LogLevel.Debug) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (3)
29public static LogMessage Create<TArg0, TArg1, TArg2>(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel) 194private Func<TArg0, TArg1, TArg2, string>? _messageGetter; 199public static LogMessage Construct(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
263Func<BinaryReader, T[], int, int> read,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (6)
30Func<SemanticModel, TType, TNode, bool> canReplace, 53Func<SemanticModel, TType, TNode, bool> canReplace, 76Func<SemanticModel, SyntaxNode, TNode, SyntaxNode> updateRoot, 97Func<SemanticModel, TType, TNode, bool> canReplace, 120Func<SemanticModel, SyntaxNode, TNode, SyntaxNode> updateRoot, 155Func<SemanticModel, TType, TNode, bool> canReplace,
Microsoft.CodeAnalysis.AnalyzerUtilities (49)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
48Func<TKey, TValue, TArg, TValue> updateValueFactory,
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (4)
168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
317public void RemoveAll<TArg>(Func<T, int, TArg, bool> match, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (8)
281public static Releaser GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction) 282=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>>(unboundFunction, argument, out boundFunction); 285/// Gets a <see cref="Func{T1, T2, T3, TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the 317public static Releaser GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction) 318=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>>(unboundFunction, argument, out boundFunction); 439: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>> 446: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>> 448protected override Func<T1, T2, T3, TResult> Bind()
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (15)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 67Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 90Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 104Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 160Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 174Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 226Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 322Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
342Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>> computeReplacementAsync, 364Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>> computeReplacementAsync, 377Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>> computeReplacementAsync, 390Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>>? computeReplacementNodeAsync, 392Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>>? computeReplacementTokenAsync, 394Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>>? computeReplacementTriviaAsync,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
196Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> relativeIndentationDeltaGetter = static (self, operation, effectiveBaseToken) =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (3)
44private readonly Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> _indentationDeltaGetter; 56public RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter) 70private RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter, int lazyIndentationDelta)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (2)
114public static void Log<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel = LogLevel.Debug) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (3)
29public static LogMessage Create<TArg0, TArg1, TArg2>(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel) 194private Func<TArg0, TArg1, TArg2, string>? _messageGetter; 199public static LogMessage Construct(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
263Func<BinaryReader, T[], int, int> read,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
Microsoft.CodeAnalysis.CodeStyle (49)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
48Func<TKey, TValue, TArg, TValue> updateValueFactory,
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (4)
168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
317public void RemoveAll<TArg>(Func<T, int, TArg, bool> match, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (8)
281public static Releaser GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction) 282=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>>(unboundFunction, argument, out boundFunction); 285/// Gets a <see cref="Func{T1, T2, T3, TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the 317public static Releaser GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction) 318=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>>(unboundFunction, argument, out boundFunction); 439: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>> 446: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>> 448protected override Func<T1, T2, T3, TResult> Bind()
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (15)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 67Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 90Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 104Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 160Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 174Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 226Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 322Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
342Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>> computeReplacementAsync, 364Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>> computeReplacementAsync, 377Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>> computeReplacementAsync, 390Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>>? computeReplacementNodeAsync, 392Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>>? computeReplacementTokenAsync, 394Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>>? computeReplacementTriviaAsync,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
196Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> relativeIndentationDeltaGetter = static (self, operation, effectiveBaseToken) =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (3)
44private readonly Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> _indentationDeltaGetter; 56public RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter) 70private RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter, int lazyIndentationDelta)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (2)
114public static void Log<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel = LogLevel.Debug) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (3)
29public static LogMessage Create<TArg0, TArg1, TArg2>(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel) 194private Func<TArg0, TArg1, TArg2, string>? _messageGetter; 199public static LogMessage Construct(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
263Func<BinaryReader, T[], int, int> read,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (6)
30Func<SemanticModel, TType, TNode, bool> canReplace, 53Func<SemanticModel, TType, TNode, bool> canReplace, 76Func<SemanticModel, SyntaxNode, TNode, SyntaxNode> updateRoot, 97Func<SemanticModel, TType, TNode, bool> canReplace, 120Func<SemanticModel, SyntaxNode, TNode, SyntaxNode> updateRoot, 155Func<SemanticModel, TType, TNode, bool> canReplace,
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_InterpolatedString.cs (1)
519Func<BoundUnconvertedInterpolatedString, int, (ImmutableArray<ImmutableArray<BoundExpression>>, TypeSymbol), BoundExpression> interpolationFactory =
BoundTree\BoundNodeExtensions.cs (2)
187Func<TInterpolatedStringType, int, TArg, TResult> interpolatedStringFactory, 200Func<TInterpolatedStringType, int, TArg, TResult> interpolatedStringFactory,
Compilation\CSharpCompilation.cs (1)
3395private ReadOnlyBindingDiagnostic<AssemblySymbol> GetSourceDeclarationDiagnostics(SyntaxTree? syntaxTree = null, TextSpan? filterSpanWithinTree = null, Func<IEnumerable<Diagnostic>, SyntaxTree, TextSpan?, IEnumerable<Diagnostic>>? locationFilterOpt = null, Predicate<Symbol>? symbolFilter = null, CancellationToken cancellationToken = default)
Emitter\Model\PEAssemblyBuilder.cs (2)
456var createParameterlessEmbeddedAttributeSymbol = new Func<string, NamespaceSymbol, BindingDiagnosticBag, SynthesizedEmbeddedAttributeSymbol>(CreateParameterlessEmbeddedAttributeSymbol); 668Func<string, NamespaceSymbol, BindingDiagnosticBag, T> factory,
Lowering\StateMachineRewriter\RefInitializationHoister.cs (2)
62Func<TypeSymbol, TArg, LocalSymbol, THoistedSymbol> createHoistedSymbol, 141Func<TypeSymbol, TArg, LocalSymbol, THoistedSymbol> createHoistedSymbol,
Operations\CSharpOperationFactory.cs (1)
1605Func<BoundInterpolatedString, int, (CSharpOperationFactory, InterpolatedStringHandlerData), IOperation> createInterpolatedString
Symbols\Compilation_WellKnownMembers.cs (1)
1038Func<TypeSymbol, (ArrayBuilder<bool>, bool), bool, bool> visitor =
Symbols\ConstraintsHelper.cs (1)
585private static readonly Func<TypeSymbol, CheckConstraintsArgsBoxed, bool, bool> s_checkConstraintsSingleTypeFunc = (type, arg, unused) => CheckConstraintsSingleType(type, in arg.Args);
Symbols\NativeIntegerTypeSymbol.cs (1)
507Func<NativeIntegerTypeSymbol, NativeIntegerPropertySymbol, MethodSymbol?, NativeIntegerMethodSymbol?> getAccessor) :
Symbols\SymbolExtensions.cs (1)
234private static readonly Func<TypeSymbol, Symbol, bool, bool> s_hasInvalidTypeParameterFunc =
Symbols\TypeSymbolExtensions.cs (11)
769Func<TypeSymbol, T, bool, bool> predicate, 798Func<TypeWithAnnotations, T, bool, bool>? typeWithAnnotationsPredicate, 799Func<TypeSymbol, T, bool, bool>? typePredicate, 999static TypeSymbol? visitFunctionPointerType(FunctionPointerTypeSymbol type, Func<TypeWithAnnotations, T, bool, bool>? typeWithAnnotationsPredicate, Func<TypeSymbol, T, bool, bool>? typePredicate, T arg, bool useDefaultType, bool canDigThroughNullable, bool visitCustomModifiers, out TypeWithAnnotations next) 1250private static readonly Func<TypeSymbol, TypeParameterSymbol?, bool, bool> s_containsTypeParameterPredicate = 1261private static readonly Func<TypeSymbol, Symbol, bool, bool> s_isTypeParameterWithSpecificContainerPredicate = 1270private static readonly Func<TypeSymbol, HashSet<TypeParameterSymbol>, bool, bool> s_containsTypeParametersPredicate = 1301private static readonly Func<TypeSymbol, HashSet<TypeParameterSymbol>, bool, bool> s_typeParameterSymbolCollector = (typeSymbol, result, _) => 1317private static readonly Func<TypeSymbol, object?, bool, bool> s_containsMethodTypeParameterPredicate = 1329private static readonly Func<TypeSymbol, object?, bool, bool> s_containsDynamicPredicate = (type, unused1, unused2) => type.TypeKind == TypeKind.Dynamic;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
63Func<Document, LocalFunctionStatementSyntax, ImmutableArray<ISymbol>, Task> fixer,
Microsoft.CodeAnalysis.CSharp.Features (6)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (2)
266Func<CodeActionPurpose, IProgress<CodeAnalysisProgress>, CancellationToken, Task<Solution>> createChangedSolution) 274private readonly Func<CodeActionPurpose, IProgress<CodeAnalysisProgress>, CancellationToken, Task<Solution>> _createChangedSolution = createChangedSolution;
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.FixAllProvider.cs (2)
55private sealed class FixAllCodeAction(Func<CodeActionPurpose, IProgress<CodeAnalysisProgress>, CancellationToken, Task<Solution>> createChangedSolution) 63private readonly Func<CodeActionPurpose, IProgress<CodeAnalysisProgress>, CancellationToken, Task<Solution>> _createChangedSolution = createChangedSolution;
ConvertBetweenRegularAndVerbatimString\AbstractConvertBetweenRegularAndVerbatimStringCodeRefactoringProvider.cs (1)
82Func<IVirtualCharService, StringBuilder, TStringExpressionSyntax, TStringExpressionSyntax> convert,
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
63Func<Document, LocalFunctionStatementSyntax, ImmutableArray<ISymbol>, Task> fixer,
Microsoft.CodeAnalysis.CSharp.Scripting (2)
Hosting\CommandLine\Csi.cs (2)
15private readonly Func<string, PEStreamOptions, MetadataReferenceProperties, MetadataImageReference> _createFromFileFunc; 22Func<string, PEStreamOptions, MetadataReferenceProperties, MetadataImageReference>? createFromFileFunc = null)
Microsoft.CodeAnalysis.Extensions.Package (16)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (4)
168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
317public void RemoveAll<TArg>(Func<T, int, TArg, bool> match, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (8)
281public static Releaser GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction) 282=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>>(unboundFunction, argument, out boundFunction); 285/// Gets a <see cref="Func{T1, T2, T3, TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the 317public static Releaser GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction) 318=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>>(unboundFunction, argument, out boundFunction); 439: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>> 446: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>> 448protected override Func<T1, T2, T3, TResult> Bind()
Microsoft.CodeAnalysis.Features (16)
Extensions\ExtensionMessageHandlerService_RemoteOrLocal.cs (2)
21Func<ExtensionMessageHandlerService, TArg, CancellationToken, ValueTask> executeInProcessAsync, 46Func<ExtensionMessageHandlerService, TArg, CancellationToken, ValueTask<TResult>> executeInProcessAsync,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (2)
29private static readonly Func<int, object, bool, string> s_enqueueLogger = EnqueueLogger; 151Func<IUnitTestingIncrementalAnalyzer, T, CancellationToken, Task> runnerAsync,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
31private static readonly Func<int, DocumentId, bool, string> s_enqueueLogger = (tick, documentId, hint) => $"Tick:{tick}, {documentId}, {documentId.ProjectId}, hint:{hint}";
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (2)
87var onItemsFound = GetOnItemsFoundCallback(solution, activeDocument, onResultsFound); 115Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound,
NavigateTo\AbstractNavigateToSearchService.cs (1)
36private static Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> GetOnItemsFoundCallback(
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (2)
36var onItemsFound = GetOnItemsFoundCallback(solution, activeDocument, onResultsFound); 64Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound,
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (4)
34var onItemsFound = GetOnItemsFoundCallback(solution, activeDocument: document, onResultsFound); 57Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound, 164var onItemsFound = GetOnItemsFoundCallback(solution, activeDocument, onResultsFound); 193Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound,
NavigateTo\IRemoteNavigateToSearchService.cs (1)
51Func<ImmutableArray<RoslynNavigateToItem>, VoidResult, CancellationToken, Task> onItemsFound,
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (1)
185private static readonly Func<SyntaxNode, SyntaxGenerator, ReplaceParentArgs, SyntaxNode> replaceParentCallback =
Microsoft.CodeAnalysis.NetAnalyzers (4)
SyntaxEditorFixAllProvider.cs (4)
134Func<Document, SyntaxEditor, TState, Document>? getFixedDocument = null) 168Func<Document, SyntaxEditor, TState, Document>? getFixedDocument, 193private readonly Func<Document, SyntaxEditor, TState, Document>? _getFixedDocument; 199Func<Document, SyntaxEditor, TState, Document>? getFixedDocument = null)
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\CSharpCodeParser.cs (1)
1323Func<string, List<RazorDiagnostic>, SourceLocation, ISpanChunkGenerator> chunkGeneratorFactory)
Microsoft.CodeAnalysis.ResxSourceGenerator (49)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
48Func<TKey, TValue, TArg, TValue> updateValueFactory,
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (4)
168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
317public void RemoveAll<TArg>(Func<T, int, TArg, bool> match, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (8)
281public static Releaser GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction) 282=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>>(unboundFunction, argument, out boundFunction); 285/// Gets a <see cref="Func{T1, T2, T3, TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the 317public static Releaser GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction) 318=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>>(unboundFunction, argument, out boundFunction); 439: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>> 446: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>> 448protected override Func<T1, T2, T3, TResult> Bind()
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (15)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 67Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 90Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 104Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 160Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 174Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 226Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 322Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
342Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>> computeReplacementAsync, 364Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>> computeReplacementAsync, 377Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>> computeReplacementAsync, 390Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>>? computeReplacementNodeAsync, 392Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>>? computeReplacementTokenAsync, 394Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>>? computeReplacementTriviaAsync,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
196Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> relativeIndentationDeltaGetter = static (self, operation, effectiveBaseToken) =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (3)
44private readonly Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> _indentationDeltaGetter; 56public RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter) 70private RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter, int lazyIndentationDelta)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (2)
114public static void Log<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel = LogLevel.Debug) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (3)
29public static LogMessage Create<TArg0, TArg1, TArg2>(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel) 194private Func<TArg0, TArg1, TArg2, string>? _messageGetter; 199public static LogMessage Construct(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
263Func<BinaryReader, T[], int, int> read,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
Microsoft.CodeAnalysis.Scripting (7)
Hosting\CommandLine\CommandLineRunner.cs (3)
25private readonly Func<string, PEStreamOptions, MetadataReferenceProperties, MetadataImageReference> _createFromFileFunc; 32Func<string, PEStreamOptions, MetadataReferenceProperties, MetadataImageReference>? createFromFileFunc = null) 183Func<string, PEStreamOptions, MetadataReferenceProperties, MetadataImageReference> createFromFileFunc)
Script.cs (1)
315Func<string, PEStreamOptions, MetadataReferenceProperties, MetadataImageReference> createFromFileFunc)
ScriptOptions.cs (3)
143internal Func<string, PEStreamOptions, MetadataReferenceProperties, MetadataImageReference> CreateFromFileFunc { get; private set; } 158Func<string, PEStreamOptions, MetadataReferenceProperties, MetadataImageReference>? createFromFileFunc = null) 393internal ScriptOptions WithCreateFromFileFunc(Func<string, PEStreamOptions, MetadataReferenceProperties, MetadataImageReference> createFromFileFunc)
Microsoft.CodeAnalysis.Workspaces (100)
CodeActions\CodeAction_Cleanup.cs (7)
44private static readonly Func<Document, CodeCleanupOptions, CancellationToken, Task<Document>> s_cleanupSyntaxPass = 47private static readonly ImmutableArray<Func<Document, CodeCleanupOptions, CancellationToken, Task<Document>>> s_cleanupSyntaxPasses = [s_cleanupSyntaxPass]; 53private static readonly ImmutableArray<Func<Document, CodeCleanupOptions, CancellationToken, Task<Document>>> s_allCleanupPasses = 114ImmutableArray<Func<Document, CodeCleanupOptions, CancellationToken, Task<Document>>> passes, 167ImmutableArray<Func<Document, CodeCleanupOptions, CancellationToken, Task<Document>>> passes, 174foreach (var cleanupPass in passes) 180Solution solution, Func<Document, CodeCleanupOptions, CancellationToken, Task<Document>> cleanupDocumentAsync)
CodeFixes\FixAllOccurrences\FixAllProvider.cs (4)
55public static FixAllProvider Create(Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync) 75Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync, 82Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync, 104Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync,
CodeRefactorings\FixAllOccurences\RefactorAllProvider.cs (4)
55public static RefactorAllProvider Create(Func<RefactorAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> refactorAllAsync) 74Func<RefactorAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> refactorAllAsync, 81Func<RefactorAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> refactorAllAsync, 98Func<RefactorAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> refactorAllAsync,
Editing\SyntaxEditor.cs (2)
167internal void ReplaceNode<TArgument>(SyntaxNode node, Func<SyntaxNode, SyntaxGenerator, TArgument, SyntaxNode> computeReplacement, TArgument argument) 303Func<SyntaxNode, SyntaxGenerator, TArgument, SyntaxNode> modifier,
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
86Func<Document, T, CancellationToken, ValueTask<bool>> predicateAsync,
FindSymbols\FindReferences\FindReferenceCache.cs (1)
192string text, Func<string, SyntaxToken, TArgs, bool> isMatch, TArgs args, CancellationToken cancellationToken)
Remote\RemoteHostClient.cs (10)
81Func<TService, RemoteServiceCallbackId, CancellationToken, ValueTask> invocation, 91Func<TService, RemoteServiceCallbackId, CancellationToken, ValueTask<TResult>> invocation, 104Func<TService, Checksum, CancellationToken, ValueTask> invocation, 118Func<TService, Checksum, CancellationToken, ValueTask> invocation, 130Func<TService, Checksum, CancellationToken, ValueTask<TResult>> invocation, 141/// Equivalent to <see cref="TryInvokeAsync{TService}(Solution, Func{TService, Checksum, CancellationToken, ValueTask}, CancellationToken)"/> 148Func<TService, Checksum, CancellationToken, ValueTask> invocation, 159Func<TService, Checksum, CancellationToken, ValueTask<TResult>> invocation, 168/// Equivalent to <see cref="TryInvokeAsync{TService}(Solution, Func{TService, Checksum, CancellationToken, ValueTask}, CancellationToken)"/> 175Func<TService, Checksum, CancellationToken, ValueTask<TResult>> invocation,
Remote\RemoteServiceConnection.cs (10)
33Func<TService, RemoteServiceCallbackId, CancellationToken, ValueTask> invocation, 37Func<TService, RemoteServiceCallbackId, CancellationToken, ValueTask<TResult>> invocation, 44Func<TService, Checksum, CancellationToken, ValueTask> invocation, 49Func<TService, Checksum, CancellationToken, ValueTask<TResult>> invocation, 54Func<TService, Checksum, CancellationToken, ValueTask> invocation, 60Func<TService, Checksum, CancellationToken, ValueTask<TResult>> invocation, 69Func<TService, Checksum, CancellationToken, ValueTask> invocation, 75Func<TService, Checksum, CancellationToken, ValueTask<TResult>> invocation, 80Func<TService, Checksum, CancellationToken, ValueTask> invocation, 86Func<TService, Checksum, CancellationToken, ValueTask<TResult>> invocation,
Shared\Utilities\StreamingProgressTracker.cs (1)
14internal sealed class StreamingProgressTracker(Func<int, int, CancellationToken, ValueTask>? updateAction = null) : IStreamingProgressTracker
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
48Func<TKey, TValue, TArg, TValue> updateValueFactory,
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (4)
168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
317public void RemoveAll<TArg>(Func<T, int, TArg, bool> match, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (8)
281public static Releaser GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction) 282=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>>(unboundFunction, argument, out boundFunction); 285/// Gets a <see cref="Func{T1, T2, T3, TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the 317public static Releaser GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction) 318=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>>(unboundFunction, argument, out boundFunction); 439: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>> 446: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>> 448protected override Func<T1, T2, T3, TResult> Bind()
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (15)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 67Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 90Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 104Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 160Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 174Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 226Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 322Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
342Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>> computeReplacementAsync, 364Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>> computeReplacementAsync, 377Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>> computeReplacementAsync, 390Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>>? computeReplacementNodeAsync, 392Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>>? computeReplacementTokenAsync, 394Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>>? computeReplacementTriviaAsync,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
196Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> relativeIndentationDeltaGetter = static (self, operation, effectiveBaseToken) =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (3)
44private readonly Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> _indentationDeltaGetter; 56public RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter) 70private RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter, int lazyIndentationDelta)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (2)
114public static void Log<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel = LogLevel.Debug) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (3)
29public static LogMessage Create<TArg0, TArg1, TArg2>(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel) 194private Func<TArg0, TArg1, TArg2, string>? _messageGetter; 199public static LogMessage Construct(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
263Func<BinaryReader, T[], int, int> read,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (6)
30Func<SemanticModel, TType, TNode, bool> canReplace, 53Func<SemanticModel, TType, TNode, bool> canReplace, 76Func<SemanticModel, SyntaxNode, TNode, SyntaxNode> updateRoot, 97Func<SemanticModel, TType, TNode, bool> canReplace, 120Func<SemanticModel, SyntaxNode, TNode, SyntaxNode> updateRoot, 155Func<SemanticModel, TType, TNode, bool> canReplace,
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
64private readonly Func<Solution, DocumentId, TextLoader, Solution> _documentTextLoaderChangedAction; 71Func<Solution, DocumentId, TextLoader, Solution> documentTextLoaderChangedAction,
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
211Func<SolutionChangeAccumulator, ProjectUpdateState, T, ProjectUpdateState> updateSolution,
Workspace\Solution\SolutionCompilationState.cs (1)
852Func<TDocumentState, TDocumentData, TArg, TDocumentState> updateDocument)
Workspace\Workspace.cs (1)
1249Func<Solution, DocumentId, TArg, Solution> updateSolutionWithText,
Microsoft.CSharp (4)
Microsoft\CSharp\RuntimeBinder\ComInterop\SplatCallSite.cs (2)
19private CallSite<Func<CallSite, object, object[], object>> _site; 36_site ??= CallSite<Func<CallSite, object, object[], object>>.Create(SplatInvokeBinder.Instance);
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (2)
134var site = CallSite<Func<CallSite, T1, T2, object>>.Create(binder); 374var site = CallSite<Func<CallSite, TObject, TValue, object>>.Create(binder);
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetVersionUpdater.cs (2)
61Func<string, string, string, bool> allowPreReleaseDependency = null) 283private static void UpdateDependencies(Dictionary<string, PackageInfo> packages, VersionTranslation translation, bool exactVersions, Func<string, string, string, bool> allowPreReleaseDependencyOpt)
Microsoft.Extensions.AI (5)
ChatCompletion\AnonymousDelegatingChatClient.cs (2)
32private readonly Func<IEnumerable<ChatMessage>, ChatOptions?, Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, Task>, CancellationToken, Task>? _sharedFunc; 51Func<IEnumerable<ChatMessage>, ChatOptions?, Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, Task>, CancellationToken, Task> sharedFunc)
ChatCompletion\ChatClientBuilder.cs (1)
108public ChatClientBuilder Use(Func<IEnumerable<ChatMessage>, ChatOptions?, Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, Task>, CancellationToken, Task> sharedFunc)
Common\FunctionInvocationProcessor.cs (2)
66Func<FunctionCallContent, AIFunction, int, FunctionInvocationContext> createContext, 110Func<FunctionCallContent, AIFunction, int, FunctionInvocationContext> createContext,
Microsoft.Extensions.AI.Abstractions (4)
ChatCompletion\ChatResponseExtensions.cs (1)
439Func<IList<AIContent>, int, int, TContent> merge)
Functions\AIFunctionFactory.cs (2)
1034Func<object?, Type?, CancellationToken, ValueTask<object?>>? marshalResult = key.MarshalResult; 1277Func<object?, Type?, CancellationToken, ValueTask<object?>>? MarshalResult,
Functions\AIFunctionFactoryOptions.cs (1)
118public Func<object?, Type?, CancellationToken, ValueTask<object?>>? MarshalResult { get; set; }
Microsoft.Extensions.AI.Abstractions.Tests (11)
TestChatClient.cs (2)
20public Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, Task<ChatResponse>>? GetResponseAsyncCallback { get; set; } 22public Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, IAsyncEnumerable<ChatResponseUpdate>>? GetStreamingResponseAsyncCallback { get; set; }
TestEmbeddingGenerator.cs (1)
22public Func<IEnumerable<TInput>, EmbeddingGenerationOptions?, CancellationToken, Task<GeneratedEmbeddings<TEmbedding>>>? GenerateAsyncCallback { get; set; }
TestHostedFileClient.cs (3)
23public Func<string, HostedFileClientOptions?, CancellationToken, Task<HostedFileDownloadStream>>? DownloadAsyncCallback { get; set; } 25public Func<string, HostedFileClientOptions?, CancellationToken, Task<HostedFileContent?>>? GetFileInfoAsyncCallback { get; set; } 29public Func<string, HostedFileClientOptions?, CancellationToken, Task<bool>>? DeleteAsyncCallback { get; set; }
TestImageGenerator.cs (1)
19public Func<ImageGenerationRequest, ImageGenerationOptions?, CancellationToken, Task<ImageGenerationResponse>>? GenerateImagesAsyncCallback { get; set; }
TestSpeechToTextClient.cs (2)
22public Func<Stream, 29public Func<Stream,
TestTextToSpeechClient.cs (2)
21public Func<string, 28public Func<string,
Microsoft.Extensions.AI.Integration.Tests (5)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (2)
20public Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, Task<ChatResponse>>? GetResponseAsyncCallback { get; set; } 22public Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, IAsyncEnumerable<ChatResponseUpdate>>? GetStreamingResponseAsyncCallback { get; set; }
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestImageGenerator.cs (1)
19public Func<ImageGenerationRequest, ImageGenerationOptions?, CancellationToken, Task<ImageGenerationResponse>>? GenerateImagesAsyncCallback { get; set; }
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestSpeechToTextClient.cs (2)
22public Func<Stream, 29public Func<Stream,
Microsoft.Extensions.AI.OpenAI (6)
OpenAIResponsesChatClient.cs (6)
44private static readonly Func<ResponsesClient, CreateResponseOptions, RequestOptions, AsyncCollectionResult<StreamingResponseUpdate>>? 46(Func<ResponsesClient, CreateResponseOptions, RequestOptions, AsyncCollectionResult<StreamingResponseUpdate>>?) 50?.CreateDelegate(typeof(Func<ResponsesClient, CreateResponseOptions, RequestOptions, AsyncCollectionResult<StreamingResponseUpdate>>)); 52private static readonly Func<ResponsesClient, GetResponseOptions, RequestOptions, AsyncCollectionResult<StreamingResponseUpdate>>? 54(Func<ResponsesClient, GetResponseOptions, RequestOptions, AsyncCollectionResult<StreamingResponseUpdate>>?) 58?.CreateDelegate(typeof(Func<ResponsesClient, GetResponseOptions, RequestOptions, AsyncCollectionResult<StreamingResponseUpdate>>));
Microsoft.Extensions.AI.Tests (12)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
1404Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, ChatResponse> callback =
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (2)
20public Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, Task<ChatResponse>>? GetResponseAsyncCallback { get; set; } 22public Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, IAsyncEnumerable<ChatResponseUpdate>>? GetStreamingResponseAsyncCallback { get; set; }
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (1)
22public Func<IEnumerable<TInput>, EmbeddingGenerationOptions?, CancellationToken, Task<GeneratedEmbeddings<TEmbedding>>>? GenerateAsyncCallback { get; set; }
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestHostedFileClient.cs (3)
23public Func<string, HostedFileClientOptions?, CancellationToken, Task<HostedFileDownloadStream>>? DownloadAsyncCallback { get; set; } 25public Func<string, HostedFileClientOptions?, CancellationToken, Task<HostedFileContent?>>? GetFileInfoAsyncCallback { get; set; } 29public Func<string, HostedFileClientOptions?, CancellationToken, Task<bool>>? DeleteAsyncCallback { get; set; }
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestImageGenerator.cs (1)
19public Func<ImageGenerationRequest, ImageGenerationOptions?, CancellationToken, Task<ImageGenerationResponse>>? GenerateImagesAsyncCallback { get; set; }
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestSpeechToTextClient.cs (2)
22public Func<Stream, 29public Func<Stream,
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestTextToSpeechClient.cs (2)
21public Func<string, 28public Func<string,
Microsoft.Extensions.Caching.Abstractions (7)
Hybrid\HybridCache.cs (6)
145Func<TState, HybridCacheEntryContext, CancellationToken, ValueTask<T>> factory, 266Func<TState, HybridCacheEntryContext, CancellationToken, ValueTask<T>> factory, 306Func<TState, HybridCacheEntryContext, CancellationToken, ValueTask<T>> factory, 325public static readonly Func<Func<HybridCacheEntryContext, CancellationToken, ValueTask<T>>, HybridCacheEntryContext, CancellationToken, ValueTask<T>> Instance = 332public readonly Func<TState, HybridCacheEntryContext, CancellationToken, ValueTask<T>> Factory; 338public DefaultImplState(TState state, Func<TState, HybridCacheEntryContext, CancellationToken, ValueTask<T>> factory, HybridCacheEntryOptions? options)
Hybrid\HybridCacheEntryOptions.cs (1)
17/// <see cref="HybridCache.GetOrCreateAsync{TState, T}(string, TState, Func{TState, HybridCacheEntryContext, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask{T}}, HybridCacheEntryOptions?, System.Collections.Generic.IEnumerable{string}?, System.Threading.CancellationToken)"/>
Microsoft.Extensions.Configuration.Binder.SourceGeneration (3)
ConfigurationBindingGenerator.cs (3)
102internal static Func<SemanticModel, InvocationExpressionSyntax, CancellationToken, object>? GetInterceptableLocationFunc { get; private set; } 143GetInterceptableLocationFunc = (Func<SemanticModel, InvocationExpressionSyntax, CancellationToken, object>) 144getInterceptableLocationMethod.CreateDelegate(typeof(Func<SemanticModel, InvocationExpressionSyntax, CancellationToken, object>), target: null);
Microsoft.Extensions.DataIngestion.Tests (3)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestChatClient.cs (2)
20public Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, Task<ChatResponse>>? GetResponseAsyncCallback { get; set; } 22public Func<IEnumerable<ChatMessage>, ChatOptions?, CancellationToken, IAsyncEnumerable<ChatResponseUpdate>>? GetStreamingResponseAsyncCallback { get; set; }
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (1)
22public Func<IEnumerable<TInput>, EmbeddingGenerationOptions?, CancellationToken, Task<GeneratedEmbeddings<TEmbedding>>>? GenerateAsyncCallback { get; set; }
Microsoft.Extensions.DependencyModel (1)
LinqHelpers.cs (1)
27Func<TSource, TParam1, TParam2, IEnumerable<TResult>> func, TParam1 param1, TParam2 param2)
Microsoft.Extensions.Http (1)
Logging\LogHelper.cs (1)
51private static readonly Func<ILogger, HttpMethod, string?, IDisposable?> _beginRequestPipelineScope = LoggerMessage.DefineScope<HttpMethod, string?>("HTTP {HttpMethod} {Uri}");
Microsoft.Extensions.Http.Polly (1)
DependencyInjection\PollyHttpClientBuilderExtensions.cs (1)
254public static IHttpClientBuilder AddPolicyHandler(this IHttpClientBuilder builder, Func<IServiceProvider, HttpRequestMessage, string, IAsyncPolicy<HttpResponseMessage>> policyFactory, Func<HttpRequestMessage, string> keySelector)
Microsoft.Extensions.Logging (9)
FilterLoggingBuilderExtensions.cs (3)
29public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, Func<string?, string?, LogLevel, bool> filter) => 171public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, Func<string?, string?, LogLevel, bool> filter) => 308Func<string?, string?, LogLevel, bool>? filter = null)
LoggerFactory.cs (1)
241out Func<string?, string?, LogLevel, bool>? filter);
LoggerFilterRule.cs (2)
20public LoggerFilterRule(string? providerName, string? categoryName, LogLevel? logLevel, Func<string?, string?, LogLevel, bool>? filter) 46public Func<string?, string?, LogLevel, bool>? Filter { get; }
LoggerInformation.cs (2)
11public MessageLogger(ILogger logger, string category, string? providerTypeFullName, LogLevel? minLevel, Func<string?, string?, LogLevel, bool>? filter) 28public Func<string?, string?, LogLevel, bool>? Filter { get; }
LoggerRuleSelector.cs (1)
10public static void Select(LoggerFilterOptions options, Type providerType, string category, out LogLevel? minLevel, out Func<string?, string?, LogLevel, bool>? filter)
Microsoft.Extensions.Logging.Abstractions (1)
LoggerMessage.cs (1)
50public static Func<ILogger, T1, T2, IDisposable?> DefineScope<T1, T2>(string formatString)
Microsoft.Extensions.Options (8)
AsyncValidateOptions.cs (2)
112public AsyncValidateOptions(string? name, TDep dependency, Func<TOptions, TDep, CancellationToken, Task<bool>> validation, string failureMessage) 135public Func<TOptions, TDep, CancellationToken, Task<bool>> Validation { get; }
OptionsBuilder.cs (4)
425public virtual OptionsBuilder<TOptions> Validate<TDep1, TDep2>(Func<TOptions, TDep1, TDep2, bool> validation) 438public virtual OptionsBuilder<TOptions> Validate<TDep1, TDep2>(Func<TOptions, TDep1, TDep2, bool> validation, string failureMessage) 617public virtual OptionsBuilder<TOptions> Validate<TDep>(Func<TOptions, TDep, CancellationToken, Task<bool>> validation) where TDep : notnull 627public virtual OptionsBuilder<TOptions> Validate<TDep>(Func<TOptions, TDep, CancellationToken, Task<bool>> validation, string failureMessage) where TDep : notnull
ValidateOptions.cs (2)
150public ValidateOptions(string? name, TDep1 dependency1, TDep2 dependency2, Func<TOptions, TDep1, TDep2, bool> validation, string failureMessage) 169public Func<TOptions, TDep1, TDep2, bool> Validation { get; }
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Resolver\DnsResolver.cs (2)
359private async ValueTask<TResult[]> SendQueryWithTelemetry<TResult>(string name, EncodedDomainName dnsSafeName, QueryType queryType, Func<EncodedDomainName, QueryType, DnsResponse, (SendQueryError error, TResult[] result)> processResponseFunc, CancellationToken cancellationToken) 375async ValueTask<(SendQueryError error, TResult[] result)> SendQueryWithRetriesAsync<TResult>(string name, EncodedDomainName dnsSafeName, QueryType queryType, Func<EncodedDomainName, QueryType, DnsResponse, (SendQueryError error, TResult[] result)> processResponseFunc, CancellationToken cancellationToken)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
DnsSrvServiceEndpointResolverTests.cs (1)
24public Func<string, AddressFamily, CancellationToken, ValueTask<AddressResult[]>>? ResolveIPAddressesAsyncFunc { get; set; }
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (1)
YarpServiceDiscoveryTests.cs (1)
312public Func<string, AddressFamily, CancellationToken, ValueTask<AddressResult[]>>? ResolveIPAddressesAsyncFunc { get; set; }
Microsoft.Extensions.Telemetry (4)
Logging\ExtendedLoggerFactory.cs (1)
250out Func<string?, string?, LogLevel, bool>? filter);
Logging\Import\LoggerInformation.cs (2)
17public MessageLogger(ILogger logger, string category, string? providerTypeFullName, LogLevel? minLevel, Func<string?, string?, LogLevel, bool>? filter) 42public Func<string?, string?, LogLevel, bool>? Filter { get; }
Logging\Import\LoggerRuleSelector.cs (1)
14public static void Select(LoggerFilterOptions options, Type providerType, string category, out LogLevel? minLevel, out Func<string?, string?, LogLevel, bool>? filter)
Microsoft.Extensions.VectorData.ConformanceTests (4)
DependencyInjectionTests.cs (4)
29public abstract IEnumerable<Func<IServiceCollection, object?, ServiceLifetime, IServiceCollection>> StoreDelegates { get; } 36foreach (var registrationDelegate in StoreDelegates) 69foreach (var registrationDelegate in StoreDelegates) 121foreach (var registrationDelegate in StoreDelegates)
Microsoft.Interop.ComInterfaceGenerator (6)
Analyzers\AddGeneratedComClassFixer.cs (1)
72protected override Func<SolutionEditor, DocumentId, CancellationToken, Task> CreateFixForSelectedOptions(SyntaxNode node, ImmutableDictionary<string, Option> selectedOptions)
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
35protected override Func<SolutionEditor, DocumentId, CancellationToken, Task> CreateFixForSelectedOptions(SyntaxNode node, ImmutableDictionary<string, Option> selectedOptions)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (4)
33protected abstract Func<SolutionEditor, DocumentId, CancellationToken, Task> CreateFixForSelectedOptions(SyntaxNode node, ImmutableDictionary<string, Option> selectedOptions); 106private static async Task<Solution> ApplyActionAndEnableUnsafe(Solution solution, DocumentId documentId, Func<SolutionEditor, DocumentId, CancellationToken, Task> solutionBasedFix, CancellationToken ct) 161protected record struct ConvertToSourceGeneratedInteropFix(Func<SolutionEditor, DocumentId, CancellationToken, Task> ApplyFix, ImmutableDictionary<string, Option> SelectedOptions); 200var solutionBasedFix = codeFixProvider.CreateFixForSelectedOptions(node, codeFixProvider.GetOptionsForIndividualFix(options, diagnostic));
Microsoft.Interop.LibraryImportGenerator (5)
Analyzers\ConvertToLibraryImportFixer.cs (1)
138protected override Func<SolutionEditor, DocumentId, CancellationToken, Task> CreateFixForSelectedOptions(SyntaxNode node, ImmutableDictionary<string, Option> selectedOptions)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (4)
33protected abstract Func<SolutionEditor, DocumentId, CancellationToken, Task> CreateFixForSelectedOptions(SyntaxNode node, ImmutableDictionary<string, Option> selectedOptions); 106private static async Task<Solution> ApplyActionAndEnableUnsafe(Solution solution, DocumentId documentId, Func<SolutionEditor, DocumentId, CancellationToken, Task> solutionBasedFix, CancellationToken ct) 161protected record struct ConvertToSourceGeneratedInteropFix(Func<SolutionEditor, DocumentId, CancellationToken, Task> ApplyFix, ImmutableDictionary<string, Option> SelectedOptions); 200var solutionBasedFix = codeFixProvider.CreateFixForSelectedOptions(node, codeFixProvider.GetOptionsForIndividualFix(options, diagnostic));
Microsoft.ML.Core (6)
ComponentModel\ComponentFactory.cs (3)
76public static IComponentFactory<TArg1, TArg2, TComponent> CreateFromFunction<TArg1, TArg2, TComponent>(Func<IHostEnvironment, TArg1, TArg2, TComponent> factory) 136private readonly Func<IHostEnvironment, TArg1, TArg2, TComponent> _factory; 138public SimpleComponentFactory(Func<IHostEnvironment, TArg1, TArg2, TComponent> factory)
Data\ServerChannel.cs (1)
108public void Register<T1, T2, T3, TRet>(string name, Func<T1, T2, T3, TRet> func)
Utilities\Utils.cs (1)
1105public static TRet MarshalInvoke<TArg1, TArg2, TArg3, TRet>(Func<TArg1, TArg2, TArg3, TRet> func, Type genArg,
Utilities\VBufferUtils.cs (1)
1167public static void ApplyInto<TSrc1, TSrc2, TDst>(in VBuffer<TSrc1> a, in VBuffer<TSrc2> b, ref VBuffer<TDst> dst, Func<int, TSrc1, TSrc2, TDst> func)
Microsoft.ML.Core.Tests (2)
UnitTests\TestVBuffer.cs (2)
501private static void NaiveApplyInto<T1, T2, TDst>(ref VBuffer<T1> a, ref VBuffer<T2> b, ref VBuffer<TDst> dst, Func<int, T1, T2, TDst> func) 526Func<int, float, float, float> func = (int ind, float av, float bv) => 2 * bv + av - ind;
Microsoft.ML.Data (10)
Data\RowCursorUtils.cs (3)
163Func<VectorDataViewType, PrimitiveDataViewType, GetterFactory, ValueGetter<VBuffer<int>>> del = GetVecGetterAsCore<int, int>; 183Func<VectorDataViewType, PrimitiveDataViewType, GetterFactory, ValueGetter<VBuffer<TDst>>> del = GetVecGetterAsCore<int, TDst>; 200Func<VectorDataViewType, PrimitiveDataViewType, GetterFactory, ValueGetter<VBuffer<TDst>>> del = GetVecGetterAsCore<int, TDst>;
DataLoadSave\LegacyCompositeDataLoader.cs (2)
177KeyValuePair<string, string>[] tagData, Func<IHostEnvironment, int, IDataView, IDataView> createTransform) 191KeyValuePair<string, string>[] tagData, Func<IHostEnvironment, int, IDataView, IDataView> createTransform)
Scorers\FeatureContributionCalculation.cs (1)
197Func<DataViewRow, int, VBuffer<ReadOnlyMemory<char>>, ValueGetter<ReadOnlyMemory<char>>> del = GetTextValueGetter<int>;
Transforms\KeyToValue.cs (1)
241Func<int, DataViewType, DataViewType, KeyToValueMap> func = GetKeyMetadata<int, int>;
Transforms\RangeFilter.cs (1)
336Func<RangeFilter, DataViewRowCursor, bool[], DataViewRowCursor> del = CreateKeyRowCursor<int>;
Utilities\ColumnCursor.cs (2)
66Func<IDataView, int, Func<int, T>, IEnumerable<T>> del = GetColumnConvert; 87Func<IDataView, int, Func<int, long>, IEnumerable<long[]>> del = GetColumnArrayConvert;
Microsoft.ML.FastTree (1)
Utils\CompressUtils.cs (1)
19public static IEnumerable<BufferBlock> BlockLoader(Func<byte[], int, int, int> loader, int loadSize)
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipeBase.cs (1)
1044protected void VerifyVecEquality<T>(ValueGetter<VBuffer<T>> vecGetter, ValueGetter<VBuffer<T>> vecNGetter, Func<int, T, T, bool> compare, int size)
Microsoft.ML.TestFrameworkCommon (1)
TestCommon.cs (1)
136public static bool CompareVec<T>(in VBuffer<T> v1, in VBuffer<T> v2, int size, Func<int, T, T, bool> fn)
Microsoft.ML.Transforms (12)
CountFeatureSelection.cs (2)
354Func<DataViewRow, DataViewType, int, CountAggregator> del = GetOneAggregator<int>; 366Func<DataViewRow, VectorDataViewType, int, CountAggregator> del = GetVecAggregator<int>;
Expression\BuiltinFunctions.cs (1)
102public static MethodInfo Fn<T1, T2, T3, T4>(Func<T1, T2, T3, T4> fn)
Expression\CodeGen.cs (1)
54{ typeFn = typeof(Func<,,,>); break; }
ExpressionTransformer.cs (4)
496var fn = (Func<T0, T1, T2, TDst>)del; 732var fn = (Func<T0, T1, T2, TDst>)del;
MissingValueReplacing.cs (2)
242Func<VBuffer<int>, VectorDataViewType, int, int[]> func = GetValuesArray<int>; 406Func<string, DataViewType, InPredicate<int>, object> func = GetSpecifiedValue<int>;
StatefulFilterTransform.cs (2)
33private readonly Func<TSrc, TDst, TState, bool> _filterFunc; 54public StatefulFilterTransform(IHostEnvironment env, IDataView source, Func<TSrc, TDst, TState, bool> filterFunc,
Microsoft.NET.Build.Containers (3)
LocalDaemons\ContainerRuntime.cs (1)
60Func<string, string, CancellationToken, Task<bool>> tryRunCommand,
LocalDaemons\ContainerRuntimeOperations.cs (2)
19private readonly Func<string, string, CancellationToken, Task<bool>> _tryRunCommand; 24Func<string, string, CancellationToken, Task<bool>> tryRunCommand)
Microsoft.NET.HostModel (1)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Reader.cs (1)
16private void ReadResourceData(BlobReader resourceReader, PEReader peFile, Func<object, object, ushort, bool> resourceFilter)
Microsoft.TemplateEngine.Cli (2)
TabularOutput\TabularOutput.cs (2)
364private readonly IDictionary<TextAlign, Func<string, int, StringBuilder, StringBuilder>> _alignRules = new Dictionary<TextAlign, Func<string, int, StringBuilder, StringBuilder>>()
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (2)
Macros\BaseMacroConfig.cs (2)
75protected static TVal? GetOptionalParameterValue<TVal>(IGeneratedSymbolConfig config, string parameterName, Func<string, IGeneratedSymbolConfig, string, TVal> converter, TVal? defaultValue = default) 180protected TVal GetMandatoryParameterValue<TVal>(IGeneratedSymbolConfig config, string parameterName, Func<string, IGeneratedSymbolConfig, string, TVal> converter)
Microsoft.VisualBasic.Core (7)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (7)
1330Private Shared Invokers As New CacheDict(Of Integer, Func(Of CallSiteBinder, Object, Object(), Object))(16) 1340Dim Invoker As Func(Of CallSiteBinder, Object, Object(), Object) = Nothing 1363Private Shared Function CreateInvoker(ByVal ArgLength As Integer) As Func(Of CallSiteBinder, Object, Object(), Object) 1405Return DirectCast(InvokerMethod.CreateDelegate(GetType(Func(Of CallSiteBinder, Object, Object(), Object))), Func(Of CallSiteBinder, Object, Object(), Object)) 1422Dim c As CallSite(Of Func(Of CallSite, Object, Object, Object)) = 1423CallSite(Of Func(Of CallSite, Object, Object, Object)).Create(action)
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
237[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Func<,,,>))]
netstandard (1)
netstandard.cs (1)
805[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Func<,,,>))]
NuGet.Build.Tasks.Console (2)
MSBuildStaticGraphRestore.cs (2)
959Func<string, TProject, (ProjectInstance, string), TProject> updateProjectFactory, 1262Func<string, TProject, (ProjectInstance, string), TProject> updateProjectFactory,
NuGet.CommandLine.XPlat (1)
Commands\PackageSearch\PackageSearchCommand.cs (1)
25public static void Register(Command rootCommand, Func<ILoggerWithColor> getLogger, Func<PackageSearchArgs, string, CancellationToken, Task<int>> setupSettingsAndRunSearchAsync)
NuGet.DependencyResolver.Core (1)
GraphModel\GraphOperations.cs (1)
551private static void ForEach<TItem, TState, TContext>(this GraphNode<TItem> root, TState state, Func<GraphNode<TItem>, TState, TContext, TState> visitor, TContext context, Func<GraphNode<TItem>, bool> skipNode = null)
NuGet.Packaging (9)
ContentModel\ContentPropertyDefinition.cs (9)
20Func<ReadOnlyMemory<char>, PatternTable?, bool, object?> parser) 27Func<ReadOnlyMemory<char>, PatternTable?, bool, object?> parser, 34Func<ReadOnlyMemory<char>, PatternTable?, bool, object?> parser, 36Func<object?, object?, object?, int>? compareTest) 43Func<ReadOnlyMemory<char>, PatternTable?, bool, object?> parser, 51Func<ReadOnlyMemory<char>, PatternTable?, bool, object?> parser, 53Func<object?, object?, object?, int>? compareTest, 77internal Func<ReadOnlyMemory<char>, PatternTable?, bool, object?> Parser { get; } 154public Func<object?, object?, object?, int>? CompareTest { get; }
PresentationFramework (2)
System\Windows\Controls\ItemContainerGenerator.cs (2)
626internal bool FindItem<TState>(Func<TState, object, DependencyObject, bool> match, TState matchState, 676private bool DoLinearSearch<TState>(Func<TState, object, DependencyObject, bool> match, TState matchState,
Roslyn.Diagnostics.Analyzers (55)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
48Func<TKey, TValue, TArg, TValue> updateValueFactory,
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
575public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 586public static async ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this IEnumerable<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, TArg arg, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (4)
168public static ImmutableArray<TResult> SelectAsArray<TItem, TArg, TResult>(this ImmutableArray<TItem> items, Func<TItem, int, TArg, TResult> map, TArg arg) 414public static async ValueTask<ImmutableArray<TResult>> SelectAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> array, Func<TItem, TArg, CancellationToken, ValueTask<TResult>> selector, TArg arg, CancellationToken cancellationToken) 426public static ValueTask<ImmutableArray<TResult>> SelectManyAsArrayAsync<TItem, TArg, TResult>(this ImmutableArray<TItem> source, Func<TItem, TArg, CancellationToken, ValueTask<ImmutableArray<TResult>>> selector, TArg arg, CancellationToken cancellationToken) 1035public static bool SequenceEqual<TElement, TArg>(this ImmutableArray<TElement> array1, ImmutableArray<TElement> array2, TArg arg, Func<TElement, TElement, TArg, bool> predicate)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
317public void RemoveAll<TArg>(Func<T, int, TArg, bool> match, TArg arg) 950public ImmutableArray<TResult> SelectAsArrayWithIndex<TArg, TResult>(Func<T, int, TArg, TResult> map, TArg arg)
src\roslyn\src\Dependencies\PooledObjects\PooledDelegates.cs (8)
281public static Releaser GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction) 282=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>>(unboundFunction, argument, out boundFunction); 285/// Gets a <see cref="Func{T1, T2, T3, TResult}"/> delegate, which calls <paramref name="unboundFunction"/> with the 317public static Releaser GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction) 318=> GetPooledDelegate<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>>(unboundFunction, argument, out boundFunction); 439: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, TArg, TResult>, TArg, Func<T1, T2, TArg, TResult>, Func<T1, T2, TResult>> 446: AbstractDelegateWithBoundArgument<FuncWithBoundArgument<T1, T2, T3, TArg, TResult>, TArg, Func<T1, T2, T3, TArg, TResult>, Func<T1, T2, T3, TResult>> 448protected override Func<T1, T2, T3, TResult> Bind()
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (15)
25Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 48Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 49Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 66Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 67Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 90Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 104Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task> consumeItems, 127Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 141Func<ImmutableArray<TItem>, TArgs, CancellationToken, Task> consumeItems, 160Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 174Func<IAsyncEnumerable<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 226Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems, 249Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 321Func<Action<TItem>, TArgs, CancellationToken, Task> produceItems, 322Func<ChannelReader<TItem>, TArgs, CancellationToken, Task<TResult>> consumeItems,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
342Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>> computeReplacementAsync, 364Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>> computeReplacementAsync, 377Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>> computeReplacementAsync, 390Func<SyntaxNode, SyntaxNode, CancellationToken, Task<SyntaxNode>>? computeReplacementNodeAsync, 392Func<SyntaxToken, SyntaxToken, CancellationToken, Task<SyntaxToken>>? computeReplacementTokenAsync, 394Func<SyntaxTrivia, SyntaxTrivia, CancellationToken, Task<SyntaxTrivia>>? computeReplacementTriviaAsync,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
196Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> relativeIndentationDeltaGetter = static (self, operation, effectiveBaseToken) =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.IndentationData.cs (3)
44private readonly Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> _indentationDeltaGetter; 56public RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter) 70private RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan, IndentBlockOperation operation, Func<FormattingContext, IndentBlockOperation, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext, IndentBlockOperation, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter, int lazyIndentationDelta)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (2)
114public static void Log<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel = LogLevel.Debug) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (3)
29public static LogMessage Create<TArg0, TArg1, TArg2>(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel) 194private Func<TArg0, TArg1, TArg2, string>? _messageGetter; 199public static LogMessage Construct(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
263Func<BinaryReader, T[], int, int> read,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (6)
30Func<SemanticModel, TType, TNode, bool> canReplace, 53Func<SemanticModel, TType, TNode, bool> canReplace, 76Func<SemanticModel, SyntaxNode, TNode, SyntaxNode> updateRoot, 97Func<SemanticModel, TType, TNode, bool> canReplace, 120Func<SemanticModel, SyntaxNode, TNode, SyntaxNode> updateRoot, 155Func<SemanticModel, TType, TNode, bool> canReplace,
ScenarioTests.Common.Tests (2)
TestMockStream.cs (2)
29public Func<Stream, int, CancellationToken, Task> CopyToAsyncFunc { get; set; } 32public Func<byte[], int, int, int> ReadFunc { get; set; }
System.Composition.Hosting (2)
System\Composition\Hosting\Providers\ImportMany\ImportManyExportDescriptorProvider.cs (2)
35var gimdm = gimd.CreateStaticDelegate<Func<CompositionContract, CompositionContract, DependencyAccessor, object>>();
System.Composition.TypedParts (2)
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (2)
103var setAction = Expression.Lambda<Func<object, LifetimeContext, CompositionOperation, object>>(
System.Core (1)
System.Core.cs (1)
95[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Func<,,,>))]
System.Data.Common (3)
System\Data\SQLTypes\SqlXml.cs (3)
19private static readonly Func<Stream, XmlReaderSettings, XmlParserContext?, XmlReader> s_sqlReaderDelegate = CreateSqlReaderDelegate(); 118private static Func<Stream, XmlReaderSettings, XmlParserContext?, XmlReader> CreateSqlReaderDelegate() 122return CreateSqlReaderMethodInfo.CreateDelegate<Func<Stream, XmlReaderSettings, XmlParserContext?, XmlReader>>();
System.Diagnostics.DiagnosticSource (6)
System\Diagnostics\DiagnosticListener.cs (4)
108public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer, Func<string, object?, object?, bool>? isEnabled) 115Func<string, object?, object?, bool> localIsEnabled = isEnabled; 283internal Func<string, object?, object?, bool>? IsEnabled3Arg; 434Predicate<string>? isEnabled1Arg, Func<string, object?, object?, bool>? isEnabled3Arg,
System\Diagnostics\DiagnosticSourceActivity.cs (2)
143public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer, Func<string, object?, object?, bool>? isEnabled, 151Func<string, object?, object?, bool> localIsEnabled = isEnabled;
System.IO.Pipelines (1)
System\IO\Pipelines\PipeReader.cs (1)
232private async Task CopyToAsyncCore<TStream>(TStream destination, Func<TStream, ReadOnlyMemory<byte>, CancellationToken, ValueTask<FlushResult>> writeAsync, CancellationToken cancellationToken)
System.Linq.AsyncEnumerable (49)
System\Linq\AggregateAsync.cs (6)
65Func<TSource, TSource, CancellationToken, ValueTask<TSource>> func, 75Func<TSource, TSource, CancellationToken, ValueTask<TSource>> func, 144Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func, 154Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func, 235Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func, 248Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func,
System\Linq\AggregateBy.cs (4)
108Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func, 124Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func, 247Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func, 263Func<TAccumulate, TSource, CancellationToken, ValueTask<TAccumulate>> func,
System\Linq\FullJoin.cs (4)
154Func<TOuter?, TInner?, CancellationToken, ValueTask<TResult>> resultSelector, 176Func<TOuter?, TInner?, CancellationToken, ValueTask<TResult>> resultSelector, 231Func<TOuter?, TInner?, CancellationToken, ValueTask<TResult>> resultSelector, 242Func<TOuter?, TInner?, CancellationToken, ValueTask<TResult>> resultSelector,
System\Linq\GroupBy.cs (4)
253Func<TKey, IEnumerable<TSource>, CancellationToken, ValueTask<TResult>> resultSelector, 267Func<TKey, IEnumerable<TSource>, CancellationToken, ValueTask<TResult>> resultSelector, 359Func<TKey, IEnumerable<TElement>, CancellationToken, ValueTask<TResult>> resultSelector, 375Func<TKey, IEnumerable<TElement>, CancellationToken, ValueTask<TResult>> resultSelector,
System\Linq\GroupJoin.cs (2)
221Func<TOuter, IEnumerable<TInner>, CancellationToken, ValueTask<TResult>> resultSelector, 239Func<TOuter, IEnumerable<TInner>, CancellationToken, ValueTask<TResult>> resultSelector,
System\Linq\Join.cs (2)
111Func<TOuter, TInner, CancellationToken, ValueTask<TResult>> resultSelector, 129Func<TOuter, TInner, CancellationToken, ValueTask<TResult>> resultSelector,
System\Linq\LeftJoin.cs (2)
106Func<TOuter, TInner?, CancellationToken, ValueTask<TResult>> resultSelector, 124Func<TOuter, TInner?, CancellationToken, ValueTask<TResult>> resultSelector,
System\Linq\RightJoin.cs (2)
107Func<TOuter?, TInner, CancellationToken, ValueTask<TResult>> resultSelector, 125Func<TOuter?, TInner, CancellationToken, ValueTask<TResult>> resultSelector,
System\Linq\Select.cs (2)
135Func<TSource, int, CancellationToken, ValueTask<TResult>> selector) 146Func<TSource, int, CancellationToken, ValueTask<TResult>> selector,
System\Linq\SelectMany.cs (12)
192Func<TSource, int, CancellationToken, ValueTask<IEnumerable<TResult>>> selector) 203Func<TSource, int, CancellationToken, ValueTask<IEnumerable<TResult>>> selector, 333Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector) 346Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector, 433Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector) 446Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector, 531Func<TSource, int, CancellationToken, ValueTask<IEnumerable<TCollection>>> collectionSelector, 532Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector) 544Func<TSource, int, CancellationToken, ValueTask<IEnumerable<TCollection>>> collectionSelector, 545Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector, 582Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector) 595Func<TSource, TCollection, CancellationToken, ValueTask<TResult>> resultSelector,
System\Linq\SkipWhile.cs (2)
185Func<TSource, int, CancellationToken, ValueTask<bool>> predicate) 196Func<TSource, int, CancellationToken, ValueTask<bool>> predicate,
System\Linq\TakeWhile.cs (2)
145Func<TSource, int, CancellationToken, ValueTask<bool>> predicate) 156Func<TSource, int, CancellationToken, ValueTask<bool>> predicate,
System\Linq\ToLookupAsync.cs (1)
443Func<TKey, IEnumerable<TElement>, CancellationToken, ValueTask<TResult>> resultSelector,
System\Linq\Where.cs (2)
134Func<TSource, int, CancellationToken, ValueTask<bool>> predicate) 145Func<TSource, int, CancellationToken, ValueTask<bool>> predicate,
System\Linq\Zip.cs (2)
74Func<TFirst, TSecond, CancellationToken, ValueTask<TResult>> resultSelector) 87Func<TFirst, TSecond, CancellationToken, ValueTask<TResult>> resultSelector,
System.Linq.Expressions (9)
System\Dynamic\UpdateDelegates.Generated.cs (3)
165var @this = (CallSite<Func<CallSite, T0, T1, TRet>>)site; 166Func<CallSite, T0, T1, TRet>[] applicable; 167Func<CallSite, T0, T1, TRet> rule, originalRule = @this.Target;
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
199return typeof(Func<,,,>).MakeGenericType(types);
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (3)
501private readonly Func<T0, T1, T2, TRet> _target; 508_target = (Func<T0, T1, T2, TRet>)target.CreateDelegate(typeof(Func<T0, T1, T2, TRet>));
System\Linq\Expressions\StackGuard.cs (2)
54public R RunOnEmptyStack<T1, T2, T3, R>(Func<T1, T2, T3, R> action, T1 arg1, T2 arg2, T3 arg3) => 57var t = ((Func<T1, T2, T3, R>, T1, T2, T3))s;
System.Net.Http.Json (9)
System\Net\Http\Json\HttpClientJsonExtensions.cs (7)
19private static Task<object?> FromJsonAsyncCore(Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> getMethod, HttpClient client, Uri? requestUri, Type type, JsonSerializerOptions? options, CancellationToken cancellationToken = default) => 24private static Task<TValue?> FromJsonAsyncCore<TValue>(Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> getMethod, HttpClient client, Uri? requestUri, JsonSerializerOptions? options, CancellationToken cancellationToken = default) => 27private static Task<object?> FromJsonAsyncCore(Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> getMethod, HttpClient client, Uri? requestUri, Type type, JsonSerializerContext context, CancellationToken cancellationToken = default) => 30private static Task<TValue?> FromJsonAsyncCore<TValue>(Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> getMethod, HttpClient client, Uri? requestUri, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken) => 34Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> getMethod, 37Func<Stream, TJsonOptions, CancellationToken, ValueTask<TValue?>> deserializeMethod, 77Func<Stream, TJsonOptions, CancellationToken, ValueTask<TValue?>> deserializeMethod,
System\Net\Http\Json\HttpClientJsonExtensions.Delete.cs (1)
18private static readonly Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> s_deleteAsync =
System\Net\Http\Json\HttpClientJsonExtensions.Get.cs (1)
18private static readonly Func<HttpClient, Uri?, CancellationToken, Task<HttpResponseMessage>> s_getAsync =
System.Net.HttpListener (3)
System\Net\Windows\CookieExtensions.cs (3)
52private static Func<CookieCollection, Cookie, bool, int>? s_internalAddFunc; 56s_internalAddFunc ??= (Func<CookieCollection, Cookie, bool, int>)typeof(CookieCollection).GetMethod("InternalAdd", BindingFlags.Instance | BindingFlags.NonPublic)?.CreateDelegate(typeof(Func<CookieCollection, Cookie, bool, int>))!;
System.Net.NameResolution (2)
System\Net\DnsSocket.cs (2)
59private readonly Func<EndPoint, AsyncCallback?, object?, IAsyncResult> _beginConnect; 119_beginConnect = reflection.BeginConnectMethod.CreateDelegate<Func<EndPoint, AsyncCallback?, object?, IAsyncResult>>(socket);
System.Net.Quic (2)
System\Net\Quic\QuicListener.cs (1)
96private readonly Func<QuicConnection, SslClientHelloInfo, CancellationToken, ValueTask<QuicServerConnectionOptions>> _connectionOptionsCallback;
System\Net\Quic\QuicListenerOptions.cs (1)
37public Func<QuicConnection, SslClientHelloInfo, CancellationToken, ValueTask<QuicServerConnectionOptions>> ConnectionOptionsCallback { get; set; } = null!;
System.Net.Security (2)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
19private static readonly Func<string, CancellationToken, bool, Task<byte[]?>>? s_downloadBytes = CreateDownloadBytesFunc(); 151private static Func<string, CancellationToken, bool, Task<byte[]?>>? CreateDownloadBytesFunc()
System.Private.CoreLib (18)
Internal\Runtime\CompilerHelpers\ReflectionHelpers.cs (1)
25public static Type ExtensibleGetType(string typeName, string callingAssemblyName, Func<AssemblyName, Assembly?> assemblyResolver, Func<Assembly?, string, bool, Type?>? typeResolver, bool throwOnError, bool ignoreCase)
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (4)
108Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException) 233Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 239Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 246Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1302TKey key, Func<TKey, TArg, TValue> addValueFactory, Func<TKey, TValue, TArg, TValue> updateValueFactory, TArg factoryArgument)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (3)
828Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 862Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 871internal static Task<TResult> FromAsyncImpl<TArg1>(Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (4)
935Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 971Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 1303Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod, 1338public Task<TResult> FromAsync<TArg1, TResult>(Func<TArg1, AsyncCallback, object?, IAsyncResult> beginMethod,
System\Reflection\TypeNameResolver.NativeAot.cs (2)
18private Func<Assembly?, string, bool, Type?>? _typeResolver; 38Func<Assembly?, string, bool, Type?>? typeResolver,
System\Type.NativeAot.cs (3)
79public static Type GetType(string typeName, Func<AssemblyName, Assembly?>? assemblyResolver, Func<Assembly?, string, bool, Type?>? typeResolver) => GetType(typeName, assemblyResolver, typeResolver, throwOnError: false, ignoreCase: false); 82public static Type GetType(string typeName, Func<AssemblyName, Assembly?>? assemblyResolver, Func<Assembly?, string, bool, Type?>? typeResolver, bool throwOnError) => GetType(typeName, assemblyResolver, typeResolver, throwOnError: throwOnError, ignoreCase: false); 85public static Type GetType(string typeName, Func<AssemblyName, Assembly?>? assemblyResolver, Func<Assembly?, string, bool, Type?>? typeResolver, bool throwOnError, bool ignoreCase)
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Helpers.cs (1)
298Func<Assembly?, string, bool, Type?> typeResolver =
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
205[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Func<,,,>))]
System.Runtime.InteropServices.JavaScript (7)
System\Runtime\InteropServices\JavaScript\JSMarshalerType.cs (4)
419/// <param name="arg1">Metadata about the type of the first argument of the <see cref="System.Func{TRes,T1,T2,T3}"/>.</param> 420/// <param name="arg2">Metadata about the type of the second argument of the <see cref="System.Func{TRes,T1,T2,T3}"/>.</param> 421/// <param name="arg3">Metadata about the type of the third argument of the <see cref="System.Func{TRes,T1,T2,T3}"/>.</param> 422/// <param name="result">Metadata about the type of the result of the <see cref="System.Func{TRes,T1,T2,T3}"/>.</param>
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Func.cs (3)
494public void ToManaged<T1, T2, T3, TResult>(out Func<T1, T2, T3, TResult>? value, ArgumentToJSCallback<T1> arg1Marshaler, ArgumentToJSCallback<T2> arg2Marshaler, ArgumentToJSCallback<T3> arg3Marshaler, ArgumentToManagedCallback<TResult> resMarshaler) 694public unsafe void ToJS<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult> value, ArgumentToManagedCallback<T1> arg1Marshaler, ArgumentToManagedCallback<T2> arg2Marshaler, ArgumentToManagedCallback<T3> arg3Marshaler, ArgumentToJSCallback<TResult> resMarshaler) 696Func<T1, T2, T3, TResult> cpy = value;
System.Security.Cryptography (7)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
19private static readonly Func<string, CancellationToken, bool, Task<byte[]?>>? s_downloadBytes = CreateDownloadBytesFunc(); 151private static Func<string, CancellationToken, bool, Task<byte[]?>>? CreateDownloadBytesFunc()
System\Security\Cryptography\Aes.cs (4)
696Func<TState, ReadOnlySpan<byte>, Span<byte>, int> decryptEcb) 765Func<TState, ReadOnlySpan<byte>, Span<byte>, int> encryptEcb) 817Func<TState, ReadOnlySpan<byte>, Span<byte>, int> encryptEcb) 856Func<TState, ReadOnlySpan<byte>, Span<byte>, int> decryptEcb)
System\Security\Cryptography\FixedMemoryKeyBox.cs (1)
54Func<ReadOnlySpan<byte>, TState, ReadOnlySpan<byte>, TRet> func)
System.ServiceModel.Primitives (1)
Internals\System\Runtime\TaskHelpers.cs (1)
161public static Task<(TOut1, TOut2)> FromAsync<TIn, TOut1, TOut2>(Func<TIn, AsyncCallback, object, IAsyncResult> beginDelegate, EndWithOutDelegate<TOut2, TOut1> endDelegate, TIn arg1, object state)
System.Text.RegularExpressions (1)
System\Threading\StackHelper.cs (1)
157public static TResult CallOnEmptyStack<TArg1, TArg2, TArg3, TResult>(Func<TArg1, TArg2, TArg3, TResult> func, TArg1 arg1, TArg2 arg2, TArg3 arg3) =>
System.Text.RegularExpressions.Generator (1)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Threading\StackHelper.cs (1)
157public static TResult CallOnEmptyStack<TArg1, TArg2, TArg3, TResult>(Func<TArg1, TArg2, TArg3, TResult> func, TArg1 arg1, TArg2 arg2, TArg3 arg3) =>
System.Threading.Tasks.Dataflow (3)
Blocks\BatchBlock.cs (1)
58Func<ISourceBlock<T[]>, T[], IList<T[]>?, int>? itemCountingFunc = null;
Internal\SourceCore.cs (2)
74private readonly Func<ISourceBlock<TOutput>, TOutput, IList<TOutput>?, int>? _itemCountingFunc; 106Func<ISourceBlock<TOutput>, TOutput, IList<TOutput>?, int>? itemCountingFunc = null)
System.Threading.Tasks.Parallel (13)
System\Threading\Tasks\Parallel.cs (13)
688Func<int, ParallelLoopState, TLocal, TLocal> body, 741Func<long, ParallelLoopState, TLocal, TLocal> body, 805Func<int, ParallelLoopState, TLocal, TLocal> body, 870Func<long, ParallelLoopState, TLocal, TLocal> body, 914Func<TInt, ParallelLoopState, TLocal, TLocal>? bodyWithLocal, 1412Func<TSource, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally) 1477Func<TSource, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally) 1636Func<TSource, ParallelLoopState, TLocal, TLocal>? bodyWithStateAndLocal, 1694Func<TSource, ParallelLoopState, TLocal, TLocal>? bodyWithStateAndLocal, 1753Func<TSource, ParallelLoopState, TLocal, TLocal>? bodyWithStateAndLocal, 2018Func<TSource, ParallelLoopState, TLocal, TLocal> body, 2392Func<TSource, ParallelLoopState, TLocal, TLocal> body, 2507Func<TSource, ParallelLoopState, TLocal, TLocal>? bodyWithStateAndLocal,
UnitTests.Common (9)
IMockCommunicationObject.cs (2)
18Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginCloseOverride { get; set; } 19Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginOpenOverride { get; set; }
MockChannelBase.cs (2)
58public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginCloseOverride { get; set; } 59public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginOpenOverride { get; set; }
MockChannelFactory.cs (2)
57public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginCloseOverride { get; set; } 58public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginOpenOverride { get; set; }
MockCommunicationObject.cs (2)
53public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginCloseOverride { get; set; } 54public Func<TimeSpan, AsyncCallback, object, IAsyncResult> OnBeginOpenOverride { get; set; }
MockInteractiveChannelInitializer.cs (1)
19public Func<IClientChannel, AsyncCallback, object, IAsyncResult> BeginDisplayInitializationUIOverride { get; set; }