93 references to Func
mscorlib (28)
system\Collections\Concurrent\ConcurrentDictionary.cs (1)
1144
TKey key, Func<TKey, TArg, TValue> addValueFactory,
Func
<TKey, TValue, TArg, TValue> updateValueFactory, TArg factoryArgument)
system\threading\Tasks\FutureFactory.cs (3)
906
Func
<TArg1, AsyncCallback, object, IAsyncResult> beginMethod,
940
Func
<TArg1, AsyncCallback, object, IAsyncResult> beginMethod,
949
internal static Task<TResult> FromAsyncImpl<TArg1>(
Func
<TArg1, AsyncCallback, object, IAsyncResult> beginMethod,
system\threading\Tasks\Parallel.cs (14)
771
Func
<int, ParallelLoopState, TLocal, TLocal> body,
833
Func
<long, ParallelLoopState, TLocal, TLocal> body,
906
Func
<int, ParallelLoopState, TLocal, TLocal> body,
983
Func
<long, ParallelLoopState, TLocal, TLocal> body,
1039
Func
<int, ParallelLoopState, TLocal, TLocal> bodyWithLocal,
1354
Func
<long, ParallelLoopState, TLocal, TLocal> bodyWithLocal,
1943
Func
<TSource, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally)
2020
Func
<TSource, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally)
2221
Func
<TSource, ParallelLoopState, TLocal, TLocal> bodyWithStateAndLocal,
2285
Func
<TSource, ParallelLoopState, TLocal, TLocal> bodyWithStateAndLocal,
2344
Func
<TSource, ParallelLoopState, TLocal, TLocal> bodyWithStateAndLocal,
2627
Func
<TSource, ParallelLoopState, TLocal, TLocal> body,
3052
Func
<TSource, ParallelLoopState, TLocal, TLocal> body,
3197
Func
<TSource, ParallelLoopState, TLocal, TLocal> bodyWithStateAndLocal,
system\threading\Tasks\TaskFactory.cs (4)
1016
Func
<TArg1, AsyncCallback, object, IAsyncResult> beginMethod,
1052
Func
<TArg1, AsyncCallback, object, IAsyncResult> beginMethod,
1390
Func
<TArg1, AsyncCallback, object, IAsyncResult> beginMethod,
1425
public Task<TResult> FromAsync<TArg1, TResult>(
Func
<TArg1, AsyncCallback, object, IAsyncResult> beginMethod,
system\type.cs (3)
113
Func
<Assembly, string, bool, Type> typeResolver)
123
Func
<Assembly, string, bool, Type> typeResolver,
134
Func
<Assembly, string, bool, Type> typeResolver,
system\typenameparser.cs (3)
80
Func
<Assembly, string, bool, Type> typeResolver,
133
Func
<Assembly, string, bool, Type> typeResolver,
247
private static Type ResolveType(Assembly assembly, string[] names,
Func
<Assembly, string, bool, Type> typeResolver, bool throwOnError, bool ignoreCase, ref StackCrawlMark stackMark)
System (1)
net\System\Net\WebSockets\WebSocketConnectionStream.cs (1)
458
private static readonly
Func
<IList<ArraySegment<byte>>, AsyncCallback, object, IAsyncResult> s_BeginMultipleWrite =
System.Activities (11)
System\Activities\WorkflowApplication.cs (11)
4900
public
Func
<IAsyncResult, WorkflowApplication, bool, bool> NextCallback
4927
Func
<IAsyncResult, WorkflowApplication, bool, bool> stage1Callback;
4928
Func
<IAsyncResult, WorkflowApplication, bool, bool> stage2Callback;
4934
Func
<IAsyncResult, WorkflowApplication, bool, bool> Stage1Callback
4947
Func
<IAsyncResult, WorkflowApplication, bool, bool> Stage2Callback
5065
Func
<IAsyncResult, WorkflowApplication, bool, bool> stage1Callback;
5066
Func
<IAsyncResult, WorkflowApplication, bool, bool> stage2Callback;
5072
Func
<IAsyncResult, WorkflowApplication, bool, bool> Stage1Callback
5085
Func
<IAsyncResult, WorkflowApplication, bool, bool> Stage2Callback
5206
Func
<IAsyncResult, WorkflowApplication, bool, bool> stage1Callback;
5212
Func
<IAsyncResult, WorkflowApplication, bool, bool> Stage1Callback
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
717
public
Func
<DesignObjectWrapper, object, List<string>, bool> PropertyValidator { get; set; }
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
60
Func
<double, double, double, bool> IsGreater;
System.Core (6)
Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs (3)
294
var @this = (CallSite<
Func
<CallSite, T0, T1, TRet>>)site;
295
Func
<CallSite, T0, T1, TRet>[] applicable;
296
Func
<CallSite, T0, T1, TRet> rule, originalRule = @this.Target;
Microsoft\Scripting\Compiler\DelegateHelpers.Generated.cs (1)
237
case 4: return typeof(
Func
<,,,>).MakeGenericType(types);
System\FuncAndAction.cs (1)
15
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
Func
<,,,>))]
System\Linq\IQueryable.cs (1)
53
private static MethodInfo GetMethodInfo<T1, T2, T3, T4>(
Func
<T1, T2, T3, T4> f, T1 unused1, T2 unused2, T3 unused3) {
System.Data (7)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
717
public
Func
<DesignObjectWrapper, object, List<string>, bool> PropertyValidator { get; set; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
60
Func
<double, double, double, bool> IsGreater;
fx\src\data\System\Data\SqlClient\SqlCommand.cs (1)
2198
private bool TriggerInternalEndAndRetryIfNecessary(CommandBehavior behavior, object stateObject, int timeout, string endMethod, bool usedCache, bool inRetry, bool asyncWrite, TaskCompletionSource<object> globalCompletion, TaskCompletionSource<object> localCompletion,
Func
<IAsyncResult, string, bool, object> endFunc, Func<CommandBehavior, AsyncCallback, object, int, bool, bool, IAsyncResult> retryFunc) {
fx\src\data\System\Data\SQLTypes\SqlXml.cs (4)
47
private readonly static
Func
<Stream, XmlReaderSettings, XmlParserContext, XmlReader> sqlReaderDelegate = CreateSqlReaderDelegate();
131
private static
Func
<Stream, XmlReaderSettings, XmlParserContext, XmlReader> CreateSqlReaderDelegate()
134
return (
Func
<Stream, XmlReaderSettings, XmlParserContext, XmlReader>)Delegate.CreateDelegate(typeof(
Func
<Stream, XmlReaderSettings, XmlParserContext, XmlReader>), CreateSqlReaderMethodInfo);
System.Data.Entity (13)
System\Data\Common\CommandTrees\DbLambda.cs (1)
144
public static DbLambda Create(TypeUsage argument1Type, TypeUsage argument2Type, TypeUsage argument3Type,
Func
<DbExpression, DbExpression, DbExpression, DbExpression> lambdaFunction)
System\Data\Common\EntitySql\CqlErrorHelper.cs (5)
38
Func
<object, object, object, string> formatString;
42
(
Func
<object, object, object, string>)System.Data.Entity.Strings.NoCanonicalAggrFunctionOverloadMatch :
43
(
Func
<object, object, object, string>)System.Data.Entity.Strings.NoAggrFunctionOverloadMatch;
48
(
Func
<object, object, object, string>)System.Data.Entity.Strings.NoCanonicalFunctionOverloadMatch :
49
(
Func
<object, object, object, string>)System.Data.Entity.Strings.NoFunctionOverloadMatch;
System\Data\EntityModel\SchemaObjectModel\Schema.cs (1)
167
Func
<object, object, object, string> messageFormat = Strings.UnexpectedRootElement;
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
459
Func
<object, object, object, string> formatAssociationSetMessage, ViewGenErrorCode errorCode)
System\Data\Objects\CompiledQuery.cs (2)
344
public static
Func
<TArg0, TArg1, TArg2, TResult> Compile<TArg0, TArg1, TArg2, TResult>(Expression<
Func
<TArg0, TArg1, TArg2, TResult>> query) where TArg0 : ObjectContext
System\Data\Objects\ELinq\TypeSystem.cs (1)
69
case 3: delegateType = typeof(
Func
<,,,>); break;
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (1)
1678
private static ISqlFragment WrapPredicate(
Func
<SqlGenerator, IList<DbExpression>, SqlBuilder, SqlBuilder> predicateTranslator, SqlGenerator sqlgen, DbFunctionExpression e)
System\Data\SqlClient\SqlSpatialServices.cs (1)
216
private static TValue CreateWellKnownValue<TValue>(IDbSpatialValue spatialValue, Func<Exception> onMissingSrid, Func<Exception> onMissingWkbAndWkt,
Func
<int, byte[], string, TValue> onValidValue)
System.Data.Linq (2)
CompiledQuery.cs (2)
61
public static
Func
<TArg0, TArg1, TArg2, TResult> Compile<TArg0, TArg1, TArg2, TResult>(Expression<
Func
<TArg0, TArg1, TArg2, TResult>> query) where TArg0 : DataContext {
System.Data.Services.Client (12)
System\Data\Services\Client\ALinq\ResourceBinder.cs (2)
1074
private static Expression AnalyzeResourceSetMethod(MethodCallExpression mce,
Func
<MethodCallExpression, ResourceSetExpression, Expression, Expression> sequenceMethodAnalyzer)
1094
private static Expression AnalyzeResourceSetConstantMethod(MethodCallExpression mce,
Func
<MethodCallExpression, ResourceExpression, ConstantExpression, Expression> constantMethodAnalyzer)
System\Data\Services\Client\AtomMaterializer.cs (4)
96
Func
<object, object, Type, object> selector)
128
Func
<object, object, Type, object>[] propertyValues)
554
Func
<object, object, Type, object> selector)
635
Func
<object, object, Type, object>[] propertyValues)
System\Data\Services\Client\ProjectionPlan.cs (1)
48
internal
Func
<object, object, Type, object> Plan
System\Data\Services\Client\ProjectionPlanCompiler.cs (5)
100
result.Plan = (
Func
<object, object, Type, object>)((LambdaExpression)plan).Compile();
371
result = Expression.Lambda<
Func
<object, object, Type, object>>(
540
List<
Func
<object, object, Type, object>> propertyFunctions = new List<
Func
<object, object, Type, object>>();
687
propertyFunctions.Add((
Func
<object, object, Type, object>) propertyLambda.Compile());
System.ServiceModel (7)
System\ServiceModel\Channels\ServiceChannelProxy.cs (7)
213
static
Func
<ServiceChannel, ProxyOperationRuntime, object[], Task> GetOrCreateTaskDelegate(Type taskResultType)
215
Func
<ServiceChannel, ProxyOperationRuntime, object[], Task> createTaskDelegate = createGenericTaskDelegateCache[taskResultType] as
Func
<ServiceChannel, ProxyOperationRuntime, object[], Task>;
223
createTaskDelegate = createGenericTaskDelegateCache[taskResultType] as
Func
<ServiceChannel, ProxyOperationRuntime, object[], Task>;
230
createTaskDelegate = Delegate.CreateDelegate(typeof(
Func
<ServiceChannel, ProxyOperationRuntime, object[], Task>), methodInfo) as
Func
<ServiceChannel, ProxyOperationRuntime, object[], Task>;
248
Func
<ServiceChannel, ProxyOperationRuntime, object[], Task> createTaskDelegate = GetOrCreateTaskDelegate(operation.TaskTResult);
System.Web (3)
HttpApplication.cs (1)
3553
var
beginProcessRequestDelegate = AppVerifier.WrapBeginMethod<HttpContext>(_application, asyncHandler.BeginProcessRequest);
Util\AppVerifier.cs (2)
144
public static
Func
<T, AsyncCallback, object, IAsyncResult> WrapBeginMethod<T>(HttpApplication httpApplication,
Func
<T, AsyncCallback, object, IAsyncResult> originalDelegate) {
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
168
typeof(
Func
<,,,>),