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