340 references to Func
mscorlib (67)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (2)
49
internal PinnableBufferCache(string cacheName,
Func
<object> factory)
427
private
Func
<object> m_factory;
system\Lazy.cs (6)
94
static readonly
Func
<T> ALREADY_INVOKED_SENTINEL = delegate
108
private
Func
<T> m_valueFactory;
142
public Lazy(
Func
<T> valueFactory)
181
public Lazy(
Func
<T> valueFactory, bool isThreadSafe)
197
public Lazy(
Func
<T> valueFactory, LazyThreadSafetyMode mode)
427
Func
<T> factory = m_valueFactory;
system\security\claims\ClaimsPrincipal.cs (2)
79
static
Func
<ClaimsPrincipal> s_principalSelector = ClaimsPrincipalSelector;
148
public static
Func
<ClaimsPrincipal> ClaimsPrincipalSelector
system\security\cryptography\hmac.cs (2)
185
internal static HashAlgorithm GetHashAlgorithmWithFipsFallback(
Func
<HashAlgorithm> createStandardHashAlgorithmCallback,
186
Func
<HashAlgorithm> createFipsHashAlgorithmCallback) {
system\security\principal\windowsidentity.cs (1)
634
public static T RunImpersonated<T>(SafeAccessTokenHandle safeAccessTokenHandle,
Func
<T> func)
system\threading\LazyInitializer.cs (5)
128
public static T EnsureInitialized<T>(ref T target,
Func
<T> valueFactory) where T : class
146
private static T EnsureInitializedCore<T>(ref T target,
Func
<T> valueFactory) where T : class
197
public static T EnsureInitialized<T>(ref T target, ref bool initialized, ref object syncLock,
Func
<T> valueFactory)
222
private static T EnsureInitializedCore<T>(ref T target, ref bool initialized, ref object syncLock,
Func
<T> valueFactory)
254
internal static
Func
<T> s_activatorFactorySelector = new Func<T>(ActivatorFactorySelector);
system\threading\SpinWait.cs (3)
200
public static void SpinUntil(
Func
<bool> condition)
223
public static bool SpinUntil(
Func
<bool> condition, TimeSpan timeout)
247
public static bool SpinUntil(
Func
<bool> condition, int millisecondsTimeout)
system\threading\Tasks\Future.cs (9)
136
public Task(
Func
<TResult> function)
160
public Task(
Func
<TResult> function, CancellationToken cancellationToken)
187
public Task(
Func
<TResult> function, TaskCreationOptions creationOptions)
217
public Task(
Func
<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions)
330
Func
<TResult> valueSelector, Task parent, CancellationToken cancellationToken,
350
internal Task(
Func
<TResult> valueSelector, Task parent, CancellationToken cancellationToken,
392
internal static Task<TResult> StartNew(Task parent,
Func
<TResult> function, CancellationToken cancellationToken,
677
var
func = m_action as
Func
<TResult>;
system\threading\Tasks\FutureFactory.cs (4)
284
public Task<TResult> StartNew(
Func
<TResult> function)
313
public Task<TResult> StartNew(
Func
<TResult> function, CancellationToken cancellationToken)
344
public Task<TResult> StartNew(
Func
<TResult> function, TaskCreationOptions creationOptions)
386
public Task<TResult> StartNew(
Func
<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
system\threading\Tasks\Parallel.cs (18)
770
Func
<TLocal> localInit,
832
Func
<TLocal> localInit,
905
Func
<TLocal> localInit,
982
Func
<TLocal> localInit,
1040
Func
<TLocal> localInit, Action<TLocal> localFinally)
1355
Func
<TLocal> localInit, Action<TLocal> localFinally)
1942
public static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source,
Func
<TLocal> localInit,
2019
ParallelOptions parallelOptions,
Func
<TLocal> localInit,
2088
public static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source,
Func
<TLocal> localInit,
2164
public static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, ParallelOptions parallelOptions,
Func
<TLocal> localInit,
2223
Func
<TLocal> localInit, Action<TLocal> localFinally)
2287
Func
<TLocal> localInit, Action<TLocal> localFinally)
2346
Func
<TLocal> localInit, Action<TLocal> localFinally)
2626
Func
<TLocal> localInit,
2716
Func
<TLocal> localInit,
3051
Func
<TLocal> localInit,
3157
Func
<TLocal> localInit,
3199
Func
<TLocal> localInit,
system\threading\Tasks\Task.cs (7)
1515
private static readonly
Func
<ContingentProperties> s_createContingentProperties = () => new ContingentProperties();
5650
public static Task<TResult> Run<TResult>(
Func
<TResult> function)
5670
public static Task<TResult> Run<TResult>(
Func
<TResult> function, CancellationToken cancellationToken)
5686
public static Task Run(
Func
<Task> function)
5705
public static Task Run(
Func
<Task> function, CancellationToken cancellationToken)
5740
public static Task<TResult> Run<TResult>(
Func
<Task<TResult>> function)
5756
public static Task<TResult> Run<TResult>(
Func
<Task<TResult>> function, CancellationToken cancellationToken)
system\threading\Tasks\TaskFactory.cs (4)
569
public Task<TResult> StartNew<TResult>(
Func
<TResult> function)
602
public Task<TResult> StartNew<TResult>(
Func
<TResult> function, CancellationToken cancellationToken)
636
public Task<TResult> StartNew<TResult>(
Func
<TResult> function, TaskCreationOptions creationOptions)
681
public Task<TResult> StartNew<TResult>(
Func
<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
system\threading\ThreadLocal.cs (4)
46
private
Func
<T> m_valueFactory;
110
public ThreadLocal(
Func
<T> valueFactory)
130
public ThreadLocal(
Func
<T> valueFactory, bool trackAllValues)
138
private void Initialize(
Func
<T> valueFactory, bool trackAllValues)
PresentationFramework (6)
src\Framework\System\Windows\Data\ListCollectionView.cs (1)
2461
internal static IComparer PrepareComparer(IComparer customSort, SortDescriptionCollection sort,
Func
<CollectionView> lazyGetCollectionView)
src\Framework\System\Windows\FrameworkElementFactory.cs (1)
1303
private
Func
<object> _knownTypeFactory;
src\Framework\System\Windows\Markup\Baml2006\WpfKnownType.cs (2)
35
Func
<object> _defaultConstructor;
201
public
Func
<object> DefaultConstructor
src\Shared\MS\Internal\Xaml\Context\XamlContextStack.cs (2)
17
Func
<T> _creationDelegate;
19
public XamlContextStack(
Func
<T> creationDelegate)
System (2)
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (2)
49
internal PinnableBufferCache(string cacheName,
Func
<object> factory)
427
private
Func
<object> m_factory;
System.Activities (57)
System\Activities\Activity.cs (3)
95
protected virtual
Func
<Activity> Implementation
1270
internal void AddDefaultExtensionProvider<T>(
Func
<T> extensionProvider)
1363
public void AddDefaultExtensionProvider<T>(
Func
<T> extensionProvider)
System\Activities\ActivityMetadata.cs (1)
253
public void AddDefaultExtensionProvider<T>(
Func
<T> extensionProvider)
System\Activities\AsyncCodeActivity.cs (2)
39
protected sealed override
Func
<Activity> Implementation
324
protected sealed override
Func
<Activity> Implementation
System\Activities\CodeActivity.cs (2)
37
protected sealed override
Func
<Activity> Implementation
135
protected sealed override
Func
<Activity> Implementation
System\Activities\CodeActivityMetadata.cs (1)
153
public void AddDefaultExtensionProvider<T>(
Func
<T> extensionProvider)
System\Activities\DynamicActivity.cs (2)
94
public new
Func
<Activity> Implementation
282
public new
Func
<Activity> Implementation
System\Activities\Expressions\ExpressionServices.cs (15)
409
Expression<
Func
<Variable>> funcExpression = Expression.Lambda<
Func
<Variable>>(methodCallExpression.Object);
410
Func
<Variable> func = funcExpression.Compile();
551
Expression<
Func
<Variable>> funcExpression = Expression.Lambda<
Func
<Variable>>(methodCallExpression.Object);
552
Func
<Variable> func = funcExpression.Compile();
606
Expression<
Func
<DelegateArgument>> funcExpression = Expression.Lambda<
Func
<DelegateArgument>>(methodCallExpression.Object);
607
Func
<DelegateArgument> func = funcExpression.Compile();
661
Expression<
Func
<DelegateArgument>> funcExpression = Expression.Lambda<
Func
<DelegateArgument>>(methodCallExpression.Object);
662
Func
<DelegateArgument> func = funcExpression.Compile();
693
Expression<
Func
<RuntimeArgument>> expr = Expression.Lambda<
Func
<RuntimeArgument>>(memberExpression, null);
694
Func
<RuntimeArgument> func = expr.Compile();
System\Activities\ExpressionUtilities.cs (7)
22
static Assembly linqAssembly = typeof(
Func
<>).Assembly;
1393
Expression<
Func
<Argument>> argumentLambda = Expression.Lambda<
Func
<Argument>>(argumentExpression);
1394
Func
<Argument> argumentFunc = argumentLambda.Compile();
1630
Expression<
Func
<LocationReference>> locationReferenceLambda = Expression.Lambda<
Func
<LocationReference>>(locationReferenceExpression);
1631
Func
<LocationReference> locationReferenceFunc = locationReferenceLambda.Compile();
System\Activities\Hosting\WorkflowInstanceExtensionManager.cs (1)
129
public virtual void Add<T>(
Func
<T> extensionCreationFunction) where T : class
System\Activities\Hosting\WorkflowInstanceExtensionProvider.cs (2)
54
Func
<T> providerFunction;
57
public WorkflowInstanceExtensionProvider(
Func
<T> providerFunction)
System\Activities\NativeActivity.cs (2)
39
protected sealed override
Func
<Activity> Implementation
226
protected sealed override
Func
<Activity> Implementation
System\Activities\NativeActivityMetadata.cs (1)
369
public void AddDefaultExtensionProvider<T>(
Func
<T> extensionProvider)
System\Activities\Statements\Delay.cs (1)
17
static
Func
<TimerExtension> getDefaultTimerExtension = new Func<TimerExtension>(GetDefaultTimerExtension);
System\Activities\Statements\StateMachine.cs (1)
33
static
Func
<StateMachineExtension> getDefaultExtension = new Func<StateMachineExtension>(GetStateMachineExtension);
System\Activities\XamlIntegration\ActivityXamlServices.cs (2)
270
public static
Func
<object> CreateFactory(XamlReader reader, Type resultType)
283
public static
Func
<T> CreateFactory<T>(XamlReader reader) where T : class
System\Activities\XamlIntegration\CompiledDataContext.cs (2)
83
public Location<T> GetLocation<T>(
Func
<T> getMethod, Action<T> setMethod, int expressionId, Activity compiledRootActivity, ActivityContext activityContext)
88
public Location<T> GetLocation<T>(
Func
<T> getMethod, Action<T> setMethod)
System\Activities\XamlIntegration\CompiledLocation.cs (3)
19
Func
<T> getMethod;
40
public CompiledLocation(
Func
<T> getMethod, Action<T> setMethod, IList<LocationReference> locationReferences, IList<Location> locations, int expressionId, Activity compiledRootActivity, ActivityContext currentActivityContext)
70
public CompiledLocation(
Func
<T> getMethod, Action<T> setMethod)
System\Activities\XamlIntegration\FuncFactory.cs (6)
17
public static
Func
<object> CreateFunc(XamlReader reader, Type returnType)
23
public static
Func
<T> CreateFunc<T>(XamlReader reader) where T : class
48
internal abstract
Func
<object> GetFunc();
98
internal override
Func
<object> GetFunc()
100
return (
Func
<T>)Evaluate;
103
internal
Func
<T> GetTypedFunc()
System\Activities\XamlIntegration\TextExpressionCompiler.cs (3)
1493
Type returnType = typeof(Expression<>).MakeGenericType(typeof(
Func
<>).MakeGenericType(expressionDescriptor.ResultType));
2809
Func
<bool> isVb;
2811
public CompiledDataContextDescriptor(
Func
<bool> isVb)
System.Activities.Presentation (7)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ActivityTemplateFactory.cs (1)
29
protected virtual
Func
<Activity> Implementation
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ActivityTemplateFactory.Generic.cs (1)
30
protected virtual
Func
<T> Implementation
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
138
Func
<bool> isCommandServiceEnabled;
139
Func
<bool> areBreakpointServicesEnabled;
System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialog.cs (1)
102
internal
Func
<bool> OnOk
System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialogWindow.xaml.cs (2)
26
private
Func
<bool> onOk;
28
public WorkflowElementDialogWindow(WorkflowElementDialog payload, bool okCancel, bool enableMinButton, bool enableMaxButton,
Func
<bool> onOk)
System.ComponentModel.DataAnnotations (4)
DataAnnotations\LocalizableString.cs (1)
21
private
Func
<string> _cachedResult;
DataAnnotations\ValidationAttribute.cs (3)
21
private
Func
<string> _errorMessageResourceAccessor;
56
/// <param name="errorMessageAccessor">The <see cref="
Func
{T}"/> that will return an error message.</param>
57
protected ValidationAttribute(
Func
<string> errorMessageAccessor) {
System.Configuration (1)
System\Configuration\ConfigurationFileMap.cs (1)
23
private
Func
<string> _getFilenameThunk;
System.Core (10)
Microsoft\Scripting\Compiler\DelegateHelpers.Generated.cs (1)
234
case 1: return typeof(
Func
<>).MakeGenericType(types);
System\FuncAndAction.cs (1)
12
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
Func
<>))]
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (2)
70
private
Func
<TIntermediate> m_seedFactory;
79
internal AssociativeAggregationOperator(IEnumerable<TInput> child, TIntermediate seed,
Func
<TIntermediate> seedFactory, bool seedIsSpecified,
System\Linq\ParallelEnumerable.cs (1)
1876
Func
<TAccumulate> seedFactory,
System\Linq\SequenceQuery.cs (5)
129
Expression<
Func
<IEnumerable<T>>> f = Expression.Lambda<
Func
<IEnumerable<T>>>(body, (IEnumerable<ParameterExpression>)null);
163
Func
<T> func;
178
Expression<
Func
<T>> f = Expression.Lambda<
Func
<T>>(body, (IEnumerable<ParameterExpression>)null);
System.Data (9)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ActivityTemplateFactory.cs (1)
29
protected virtual
Func
<Activity> Implementation
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ActivityTemplateFactory.Generic.cs (1)
30
protected virtual
Func
<T> Implementation
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
138
Func
<bool> isCommandServiceEnabled;
139
Func
<bool> areBreakpointServicesEnabled;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialog.cs (1)
102
internal
Func
<bool> OnOk
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialogWindow.xaml.cs (2)
26
private
Func
<bool> onOk;
28
public WorkflowElementDialogWindow(WorkflowElementDialog payload, bool okCancel, bool enableMinButton, bool enableMaxButton,
Func
<bool> onOk)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
2139
private TaskCompletionSource<object> ContinueTaskPend(Task task, TaskCompletionSource<object> source,
Func
<TaskCompletionSource<object>> action) {
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
169
internal static void SetTimeoutException(TaskCompletionSource<object> completion, int timeout,
Func
<Exception> exc, CancellationToken ctoken) {
System.Data.Entity (44)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
574
Func
<string> formatMessage,
System\Data\Common\Internal\Materialization\Translator.cs (2)
309
private static void VerifyUserExpressions(IEnumerable<Expression<
Func
<object>>> userExpressions)
317
foreach (Expression<
Func
<object>> userExpression in userExpressions)
System\Data\Common\Utils\Memoizer.cs (2)
112
private
Func
<TResult> _delegate;
114
internal Result(
Func
<TResult> createValueDelegate)
System\Data\Common\Utils\Singleton.cs (2)
28
private readonly
Func
<TValue> valueProvider;
35
internal Singleton(
Func
<TValue> function)
System\Data\Metadata\CustomAssemblyResolver.cs (2)
19
private
Func
<IEnumerable<Assembly>> _wildcardAssemblyEnumerator;
21
internal CustomAssemblyResolver(
Func
<IEnumerable<Assembly>> wildcardAssemblyEnumerator, Func<AssemblyName, Assembly> referenceResolver)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (1)
177
return method.CreateDelegate(typeof(
Func
<object>));
System\Data\Metadata\Edm\NavigationPropertyAccessor.cs (2)
39
private
Func
<object> _collectionCreate;
102
public
Func
<object> CollectionCreate
System\Data\Metadata\MetadataWorkspace.cs (1)
81
private void CreateMetadataWorkspaceWithResolver(IEnumerable<string> paths,
Func
<IEnumerable<Assembly>> wildcardAssemblies, Func<AssemblyName, Assembly> resolveReference)
System\Data\Metadata\TypeSemantics.cs (1)
711
static internal void AssertTypeInvariant(string message,
Func
<bool> assertPredicate)
System\Data\Objects\CompiledQuery.cs (1)
44
Func
<bool> recompiledRequire;
System\Data\Objects\ELinq\ELinqQueryState.cs (1)
35
private
Func
<bool> _recompileRequired;
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
37
private
Func
<bool> _recompileRequired;
224
internal
Func
<bool> RecompileRequired { get { return _recompileRequired; } }
System\Data\Objects\ELinq\Funcletizer.cs (11)
111
internal Expression Funcletize(Expression expression, out
Func
<bool> recompileRequired)
326
private readonly List<
Func
<bool>> _recompileRequiredDelegates = new List<
Func
<bool>>();
346
internal
Func
<bool> GetRecompileRequiredFunction()
350
ReadOnlyCollection<
Func
<bool>> recompileRequiredDelegates = _recompileRequiredDelegates.AsReadOnly();
441
private
Func
<object> CompileExpression(Expression expression)
443
Func
<object> func = Expression
444
.Lambda<
Func
<object>>(TypeSystem.EnsureType(expression, typeof(object)))
455
Func
<object> getValue = null;
517
private void AddRecompileRequiredDelegates(
Func
<object> getValue, object value)
584
Func
<bool> inlineExpressionRequiresRecompile;
System\Data\Objects\ELinq\SpatialMethodCallTranslator.cs (1)
43
private static MethodInfo GetStaticMethod<TResult>(Expression<
Func
<TResult>> lambda)
System\Data\Objects\ELinq\TypeSystem.cs (1)
66
case 0: delegateType = typeof(
Func
<>); break;
System\Data\Objects\Internal\ComplexTypeMaterializer.cs (1)
46
result = ((
Func
<object>)plan.ClrType)();
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (2)
40
private readonly
Func
<object> _createObject;
133
_createObject = LightweightCodeGenerator.CreateConstructor(proxyType) as
Func
<object>;
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (2)
294
private static
Func
<object> CreateCollectionCreateDelegate(Type entityType, Type navigationPropertyType, string propName)
303
return Expression.Lambda<
Func
<object>>(Expression.New(typeToInstantiate)).Compile();
System\Data\Objects\ObjectContext.cs (2)
3000
Func
<object> ctor = LightweightCodeGenerator.GetConstructorDelegateForType(entityType) as
Func
<object>;
System\Data\Query\PlanCompiler\NestPullup.cs (1)
2445
private Node AugmentNodeWithConstant(Node input,
Func
<ConstantBaseOp> createOp, out Var constantVar)
System\Data\SqlClient\SqlGen\SqlSelectClauseBuilder.cs (2)
76
private readonly
Func
<bool> m_isPartOfTopMostStatement;
80
internal SqlSelectClauseBuilder(
Func
<bool> isPartOfTopMostStatement)
System\Data\SqlClient\SqlSpatialServices.cs (3)
38
private SqlSpatialServices(
Func
<SqlTypesAssembly> getSqlTypes)
216
private static TValue CreateWellKnownValue<TValue>(IDbSpatialValue spatialValue,
Func
<Exception> onMissingSrid,
Func
<Exception> onMissingWkbAndWkt, Func<int, byte[], string, TValue> onValidValue)
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
179
Func
<TextWriter> GetWriter,
System.Data.Services (7)
System\Data\Services\DataService.cs (2)
54
private static
Func
<T> cachedConstructor;
458
cachedConstructor = (
Func
<T>)WebUtil.CreateNewInstanceConstructor(dataContextType, null, dataContextType);
System\Data\Services\Providers\DataServiceStreamProviderWrapper.cs (1)
435
private static T InvokeApiCallAndValidateHeaders<T>(string methodName,
Func
<T> apiCall, DataServiceOperationContext operationContext)
System\Data\Services\Providers\ResourceType.cs (3)
79
private
Func
<object> constructorDelegate;
446
internal
Func
<object> ConstructorDelegate
452
this.constructorDelegate = (
Func
<object>)
System\Data\Services\WebUtil.cs (1)
598
return method.CreateDelegate(typeof(
Func
<>).MakeGenericType(targetType));
System.Data.Services.Client (2)
System\Data\Services\Client\DataServiceContext.cs (2)
1650
Func
<Stream> getResponseStream,
1684
internal static DataServiceClientException GetResponseText(
Func
<Stream> getResponseStream, HttpStatusCode statusCode)
System.Data.Services.Design (2)
System\Data\Common\Utils\Memoizer.cs (2)
95
private
Func
<TResult> _delegate;
97
internal Result(
Func
<TResult> createValueDelegate)
System.IdentityModel (5)
System\IdentityModel\CryptoHelper.cs (5)
23
static Dictionary<string,
Func
<object>> algorithmDelegateDictionary = new Dictionary<string,
Func
<object>>();
1245
Func
<object> delegateFunction = null;
1284
System.Linq.Expressions.LambdaExpression creationFunction = System.Linq.Expressions.Expression.Lambda<
Func
<object>>(algorithmCreationExpression);
1285
delegateFunction = creationFunction.Compile() as
Func
<object>;
System.ServiceModel (10)
System\ServiceModel\Channels\CorrelationCallbackMessageProperty.cs (1)
99
public void AddData(string name,
Func
<string> value)
System\ServiceModel\Channels\CorrelationDataMessageProperty.cs (4)
32
public void Add(string name,
Func
<string> dataProvider)
101
public static void AddData(Message message, string name,
Func
<string> dataProvider)
143
Func
<string> dataProvider;
145
public DataProviderEntry(
Func
<string> dataProvider)
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (4)
32
Func
<IEnumerable<DelegatingHandler>> handlerFunc;
100
public HttpMessageHandlerFactory(
Func
<IEnumerable<DelegatingHandler>> handlers)
200
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetString(SR.HttpMessageHandlerFactoryWithFuncCannotGenerateConfig, typeof(HttpMessageHandlerFactory).Name, typeof(
Func
<IEnumerable<DelegatingHandler>>).Name)));
297
static string GetFuncDetails(
Func
<IEnumerable<DelegatingHandler>> func)
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
33
static
Func
<Action<AsyncCallback, IAsyncResult>> asyncCallbackGenerator;
System.ServiceModel.Activities (4)
System\ServiceModel\Activities\InternalSendMessage.cs (1)
2766
Func
<Pool<IChannel>> createChannelCacheItem;
System\ServiceModel\Activities\SendMessageChannelCache.cs (2)
14
static
Func
<SendMessageChannelCache> defaultExtensionProvider = new Func<SendMessageChannelCache>(CreateDefaultExtension);
43
internal static
Func
<SendMessageChannelCache> DefaultExtensionProvider
System\ServiceModel\Activities\WorkflowServiceHost.cs (1)
733
public override void Add<T>(
Func
<T> extensionCreationFunction)
System.ServiceModel.Internals (8)
System\Runtime\Collections\ObjectCache.cs (1)
97
public ObjectCacheItem<TValue> Take(TKey key,
Func
<TValue> initializerDelegate)
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (2)
41
static
Func
<string> traceAnnotation;
207
public void SetAnnotation(
Func
<string> annotation)
System\Runtime\InputQueue.cs (3)
39
public InputQueue(
Func
<Action<AsyncCallback, IAsyncResult>> asyncCallbackGenerator)
65
Func
<Action<AsyncCallback, IAsyncResult>> AsyncCallbackGenerator
357
public void Shutdown(
Func
<Exception> pendingExceptionGenerator)
System\Runtime\ThreadNeutralSemaphore.cs (2)
24
Func
<Exception> abortedExceptionGenerator;
39
public ThreadNeutralSemaphore(int maxCount,
Func
<Exception> abortedExceptionGenerator)
System.Web (58)
Compilation\BuildManager.cs (1)
891
internal static void InvokePreStartInitMethodsCore(ICollection<MethodInfo> methods,
Func
<IDisposable> setHostingEnvironmentCultures) {
DynamicValidationShim.cs (2)
33
internal static void GetUnvalidatedCollections(HttpContext context, out
Func
<NameValueCollection> formGetter, out
Func
<NameValueCollection> queryStringGetter) {
HttpRequest.cs (1)
1931
internal Uri BuildUrl(
Func
<string> pathAccessor) {
ModelBinding\AssociatedMetadataProvider.cs (6)
19
protected abstract ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType,
Func
<object> modelAccessor, Type modelType, string propertyName);
35
Func
<object> modelAccessor = container == null ? null : GetPropertyValueAccessor(container, property);
40
public override ModelMetadata GetMetadataForProperty(
Func
<object> modelAccessor, Type containerType, string propertyName) {
61
protected virtual ModelMetadata GetMetadataForProperty(
Func
<object> modelAccessor, Type containerType, PropertyDescriptor propertyDescriptor) {
68
public override ModelMetadata GetMetadataForType(
Func
<object> modelAccessor, Type modelType) {
79
private static
Func
<object> GetPropertyValueAccessor(object container, PropertyDescriptor property) {
ModelBinding\CollectionModelBinderUtil.cs (2)
10
public static void CreateOrReplaceCollection<TElement>(ModelBindingContext bindingContext, IEnumerable<TElement> incomingElements,
Func
<ICollection<TElement>> creator) {
23
public static void CreateOrReplaceDictionary<TKey, TValue>(ModelBindingContext bindingContext, IEnumerable<KeyValuePair<TKey, TValue>> incomingElements,
Func
<IDictionary<TKey, TValue>> creator) {
ModelBinding\CookieValueProvider.cs (2)
71
private readonly
Func
<ValueProviderResult> _validatedResultAccessor;
72
private readonly
Func
<ValueProviderResult> _unvalidatedResultAccessor;
ModelBinding\DataAnnotationsModelMetadata.cs (1)
11
Func
<object> modelAccessor, Type modelType, string propertyName,
ModelBinding\DataAnnotationsModelMetadataProvider.cs (1)
11
protected override ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType,
Func
<object> modelAccessor, Type modelType, string propertyName) {
ModelBinding\EmptyModelMetadataProvider.cs (1)
6
protected override ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType,
Func
<object> modelAccessor, Type modelType, string propertyName) {
ModelBinding\ModelBinderProviderCollection.cs (1)
89
public void RegisterBinderForType(Type modelType,
Func
<IModelBinder> modelBinderFactory) {
ModelBinding\ModelMetadata.cs (3)
19
private
Func
<object> _modelAccessor;
30
public ModelMetadata(ModelMetadataProvider provider, Type containerType,
Func
<object> modelAccessor, Type modelType, string propertyName) {
373
private static ModelMetadata GetMetadataFromProvider(
Func
<object> modelAccessor, Type modelType, string propertyName, Type containerType, ModelMetadataProvider metadataProvider) {
ModelBinding\ModelMetadataProvider.cs (2)
8
public abstract ModelMetadata GetMetadataForProperty(
Func
<object> modelAccessor, Type containerType, string propertyName);
10
public abstract ModelMetadata GetMetadataForType(
Func
<object> modelAccessor, Type modelType);
ModelBinding\NameValueCollectionValueProvider.cs (2)
68
private readonly
Func
<ValueProviderResult> _validatedResultAccessor;
69
private readonly
Func
<ValueProviderResult> _unvalidatedResultAccessor;
ModelBinding\SimpleModelBinderProvider.cs (2)
7
private readonly
Func
<IModelBinder> _modelBinderFactory;
22
public SimpleModelBinderProvider(Type modelType,
Func
<IModelBinder> modelBinderFactory) {
parent\DataAnnotations\DataAnnotations\LocalizableString.cs (1)
21
private
Func
<string> _cachedResult;
Security\Cryptography\MachineKeyCryptoAlgorithmFactory.cs (7)
16
private
Func
<SymmetricAlgorithm> _encryptionAlgorithmFactory;
18
private
Func
<KeyedHashAlgorithm> _validationAlgorithmFactory;
31
private
Func
<SymmetricAlgorithm> GetEncryptionAlgorithmFactory() {
66
private
Func
<KeyedHashAlgorithm> GetValidationAlgorithmFactory() {
93
private
Func
<TResult> GetGenericAlgorithmFactory<TResult>(string configAttributeName, string configAttributeValue, Func<string,
Func
<TResult>> switchStatement, string errorResourceString) where TResult : class, IDisposable {
94
Func
<TResult> factory;
TaskAsyncHelper.cs (1)
21
internal static IAsyncResult BeginTask(
Func
<Task> taskFunc, AsyncCallback callback, object state) {
UI\PageAsyncTask.cs (2)
50
public PageAsyncTask(
Func
<Task> handler)
83
private static Func<CancellationToken, Task> WrapParameterlessTaskHandler(
Func
<Task> handler) {
UI\ParseRecorder.cs (4)
22
private static List<
Func
<ParseRecorder>> _factories;
28
public static IList<
Func
<ParseRecorder>> RecorderFactories {
31
_factories = new List<
Func
<ParseRecorder>>();
40
foreach (
Func
<ParseRecorder> factory in _factories) {
UI\RenderTraceListener.cs (4)
19
private static List<
Func
<RenderTraceListener>> _factories;
25
public static IList<
Func
<RenderTraceListener>> ListenerFactories {
28
_factories = new List<
Func
<RenderTraceListener>>();
52
foreach (
Func
<RenderTraceListener> factory in _factories) {
UI\TemplateControl.cs (3)
477
var
handler = FastDelegateCreator<
Func
<Task>>.BindTo(this, preRenderCompleteAsyncEvent.MethodInfo);
551
MethodInfo parameterlessMethod = GetInstanceMethodInfo(typeof(
Func
<Task>), methodName);
WebSockets\AspNetWebSocket.cs (9)
76
private static readonly
Func
<Task> _completedTaskFunc = () => _completedTask;
225
private
Func
<Task> CloseAsyncImpl(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken, bool performValidation = true) {
226
Func
<Task> sendCloseTaskFunc = null;
227
Func
<Task<WebSocketReceiveResult>> receiveCloseTaskFunc = null;
299
private
Func
<Task> CloseOutputAsyncImpl(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken, bool performValidation = true) {
372
private
Func
<Task<WebSocketReceiveResult>> ReceiveAsyncImpl(ArraySegment<byte> buffer, CancellationToken cancellationToken, bool performValidation = true) {
434
private
Func
<Task> SendAsyncImpl(ArraySegment<byte> buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken, bool performValidation = true) {
562
private async Task<T> DoWork<T>(
Func
<Task<T>> taskDelegate, CancellationToken cancellationToken) {
607
internal Task DoWork(
Func
<Task> taskDelegate, CancellationToken cancellationToken) {
System.Web.DynamicData (12)
DynamicData\FieldTemplateFactory.cs (1)
109
Func
<string> templatePathFactoryFunction = () => GetFieldTemplateVirtualPath(column, mode, uiHint);
DynamicData\IMetaModel.cs (2)
14
void RegisterContext(
Func
<object> contextFactory);
15
void RegisterContext(
Func
<object> contextFactory, ContextConfiguration configuration);
DynamicData\MetaModel.cs (2)
159
public void RegisterContext(
Func
<object> contextFactory) {
169
public void RegisterContext(
Func
<object> contextFactory, ContextConfiguration configuration) {
DynamicData\ModelProviders\DLinqDataModelProvider.cs (2)
14
private
Func
<object> ContextFactory { get; set; }
16
public DLinqDataModelProvider(object contextInstance,
Func
<object> contextFactory) {
DynamicData\ModelProviders\EFDataModelProvider.cs (2)
15
private
Func
<object> ContextFactory { get; set; }
20
public EFDataModelProvider(object contextInstance,
Func
<object> contextFactory) {
DynamicData\ModelProviders\SchemaCreator.cs (1)
16
public virtual DataModelProvider CreateDataModel(object contextInstance,
Func
<object> contextFactory) {
DynamicData\SimpleFieldTemplateUserControl.cs (1)
17
private
Func
<object> _valueExtrator;
DynamicData\Util\TemplateFactory.cs (1)
81
internal string GetTemplatePath(long cacheKey,
Func
<string> templatePathFactoryFunction) {
System.Web.Extensions (4)
UI\WebControls\Dynamic.cs (1)
165
typeof(
Func
<>),
UI\WebControls\Expressions\MethodExpression.cs (3)
18
private
Func
<Type>[] typeGetters;
52
typeGetters = new
Func
<Type>[] {
90
foreach (
Func
<Type> typeGetter in typeGetters) {
System.Workflow.Runtime (2)
System\Activities\Statements\Interop.cs (2)
36
static
Func
<TimerExtension> getDefaultTimerExtension = new Func<TimerExtension>(GetDefaultTimerExtension);
37
static
Func
<InteropPersistenceParticipant> getInteropPersistenceParticipant = new Func<InteropPersistenceParticipant>(GetInteropPersistenceParticipant);
System.Xml (8)
System\Xml\AsyncHelper.cs (6)
53
public static Task CallTaskFuncWhenFinish(this Task task,
Func
<Task> func) {
62
private static async Task _CallTaskFuncWhenFinish(Task task,
Func
<Task> func) {
67
public static Task<bool> CallBoolTaskFuncWhenFinish(this Task task,
Func
<Task<bool>> func) {
76
private static async Task<bool> _CallBoolTaskFuncWhenFinish(this Task task,
Func
<Task<bool>> func) {
81
public static Task<bool> ContinueBoolTaskFuncWhenFalse(this Task<bool> task,
Func
<Task<bool>> func) {
93
private static async Task<bool> _ContinueBoolTaskFuncWhenFalse(Task<bool> task,
Func
<Task<bool>> func) {
System\Xml\Core\XmlWellFormedWriterAsync.cs (2)
124
private Task SequenceRun(Task task,
Func
<Task> nextTaskFun) {
133
private async Task _SequenceRun(Task task,
Func
<Task> nextTaskFun) {
WindowsBase (10)
Base\System\Windows\Threading\Dispatcher.cs (7)
709
public TResult Invoke<TResult>(
Func
<TResult> callback)
735
public TResult Invoke<TResult>(
Func
<TResult> callback, DispatcherPriority priority)
767
public TResult Invoke<TResult>(
Func
<TResult> callback, DispatcherPriority priority, CancellationToken cancellationToken)
805
public TResult Invoke<TResult>(
Func
<TResult> callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
953
public DispatcherOperation<TResult> InvokeAsync<TResult>(
Func
<TResult> callback)
973
public DispatcherOperation<TResult> InvokeAsync<TResult>(
Func
<TResult> callback, DispatcherPriority priority)
1006
public DispatcherOperation<TResult> InvokeAsync<TResult>(
Func
<TResult> callback, DispatcherPriority priority, CancellationToken cancellationToken)
Base\System\Windows\Threading\DispatcherOperation.cs (3)
776
Func
<TResult> func) : base(
824
Func
<TResult> func = (
Func
<TResult>) _method;