435 references to Func
mscorlib (38)
system\Collections\Concurrent\ConcurrentDictionary.cs (4)
1110public TValue GetOrAdd<TArg>(TKey key, Func<TKey, TArg, TValue> valueFactory, TArg factoryArgument) 1144TKey key, Func<TKey, TArg, TValue> addValueFactory, Func<TKey, TValue, TArg, TValue> updateValueFactory, TArg factoryArgument) 1193public TValue AddOrUpdate(TKey key, Func<TKey, TValue> addValueFactory, Func<TKey, TValue, TValue> updateValueFactory) 1240public TValue AddOrUpdate(TKey key, TValue addValue, Func<TKey, TValue, TValue> updateValueFactory)
system\threading\Tasks\Future.cs (6)
1369public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state) 1401public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state, 1435public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state, 1481public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state, 1538public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state, 1546internal Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, Object, TNewResult> continuationFunction, Object state,
system\threading\Tasks\FutureFactory.cs (12)
775Func<AsyncCallback, object, IAsyncResult> beginMethod, 804Func<AsyncCallback, object, IAsyncResult> beginMethod, 812internal static Task<TResult> FromAsyncImpl(Func<AsyncCallback, object, IAsyncResult> beginMethod, 1332Func<TInstance, IAsyncResult, TResult> endMethod) 1372private Func<TInstance, IAsyncResult, TResult> m_endMethod; 1377internal FromAsyncTrimPromise(TInstance thisRef, Func<TInstance, IAsyncResult, TResult> endMethod) : base() 1401var endMethod = promise.m_endMethod; 1428TInstance thisRef, Func<TInstance, IAsyncResult, TResult> endMethod, IAsyncResult asyncResult, 2267internal static Func<Task<Task>, object, TResult> CWAnyFuncDelegate = 2276internal static Func<Task<Task>, object, TResult> CWAnyActionDelegate = 2286internal static Func<Task<Task<TAntecedentResult>[]>, object, TResult> CWAllFuncDelegate = 2295internal static Func<Task<Task<TAntecedentResult>[]>, object, TResult> CWAllActionDelegate =
system\threading\Tasks\Task.cs (6)
4370public Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state) 4403public Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state, CancellationToken cancellationToken) 4436public Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state, TaskScheduler scheduler) 4475public Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state, TaskContinuationOptions continuationOptions) 4524public Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state, CancellationToken cancellationToken, 4532private Task<TResult> ContinueWith<TResult>(Func<Task, Object, TResult> continuationFunction, Object state, TaskScheduler scheduler,
system\threading\Tasks\TaskContinuation.cs (6)
85Contract.Requires(function is Func<Task, TResult> || function is Func<Task, object, TResult>, 114var funcWithState = m_action as Func<Task, object, TResult>; 181Contract.Requires(function is Func<Task<TAntecedentResult>, TResult> || function is Func<Task<TAntecedentResult>, object, TResult>, 210var funcWithState = m_action as Func<Task<TAntecedentResult>, object, TResult>;
system\threading\Tasks\TaskFactory.cs (4)
957Func<AsyncCallback, object, IAsyncResult> beginMethod, 987Func<AsyncCallback, object, IAsyncResult> beginMethod, 1327Func<AsyncCallback, object, IAsyncResult> beginMethod, 1359Func<AsyncCallback, object, IAsyncResult> beginMethod,
PresentationFramework (3)
src\Framework\MS\Internal\Data\RBTree.cs (1)
464internal int IndexOf(T item, Func<T,T,bool>AreEqual)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (2)
640internal bool FindItem(Func<object, DependencyObject, bool> match, 691private bool DoLinearSearch(Func<object, DependencyObject, bool> match,
System.Activities (77)
System\Activities\ActivityInstance.cs (1)
1318Func<ActivityInstance, ActivityExecutor, bool> processInstanceCallback = delegate(ActivityInstance instance, ActivityExecutor executor)
System\Activities\ActivityUtilities.cs (1)
1004public static void ProcessActivityInstanceTree(ActivityInstance rootInstance, ActivityExecutor executor, Func<ActivityInstance, ActivityExecutor, bool> callback)
System\Activities\DynamicUpdate\ActivityComparer.cs (1)
67public static bool ListEquals<T>(IList<T> currentMembers, IList<T> originalMembers, Func<T, T, bool> comparer)
System\Activities\Expressions\Add.cs (3)
19static Func<TLeft, TRight, TResult> checkedOperationFunction; 20static Func<TLeft, TRight, TResult> uncheckedOperationFunction; 62ref Func<TLeft, TRight, TResult> operationFunction,
System\Activities\Expressions\And.cs (1)
22static Func<TLeft, TRight, TResult> operationFunction;
System\Activities\Expressions\BinaryExpressionHelper.cs (3)
31public static bool TryGenerateLinqDelegate<TLeft, TRight, TResult>(ExpressionType operatorType, out Func<TLeft, TRight, TResult> function, out ValidationError validationError) 44Expression<Func<TLeft, TRight, TResult>> lambdaExpression = Expression.Lambda<Func<TLeft, TRight, TResult>>(expressionToCompile, leftParameter, rightParameter);
System\Activities\Expressions\Divide.cs (1)
19static Func<TLeft, TRight, TResult> operationFunction;
System\Activities\Expressions\Equal.cs (1)
19static Func<TLeft, TRight, TResult> operationFunction;
System\Activities\Expressions\GreaterThan.cs (1)
17static Func<TLeft, TRight, TResult> operationFunction;
System\Activities\Expressions\GreaterThanOrEqual.cs (1)
17static Func<TLeft, TRight, TResult> operationFunction;
System\Activities\Expressions\IndexerReference.cs (8)
22Func<object, object[], object> getFunc; 23Func<object, object[], object> setFunc; 25static MruCache<MethodInfo, Func<object, object[], object>> funcCache = 26new MruCache<MethodInfo, Func<object, object[], object>>(MethodCallExpressionHelper.FuncCacheCapacity); 130Func<object, object[], object> getFunc; 131Func<object, object[], object> setFunc; 134Func<object, object[], object> getFunc, Func<object, object[], object> setFunc)
System\Activities\Expressions\InvokeMethod.cs (2)
28static MruCache<MethodInfo, Func<object, object[], object>> funcCache = 29new MruCache<MethodInfo, Func<object, object[], object>>(MethodCallExpressionHelper.FuncCacheCapacity);
System\Activities\Expressions\LessThan.cs (1)
19static Func<TLeft, TRight, TResult> operationFunction;
System\Activities\Expressions\LessThanOrEqual.cs (1)
19static Func<TLeft, TRight, TResult> operationFunction;
System\Activities\Expressions\MethodCallExpressionHelper.cs (7)
195static Func<object, object[], object> GetFunc(CodeActivityMetadata metadata, MethodInfo methodInfo, bool valueTypeReference = false) 202Expression<Func<object, object[], object>> lambdaExpression = Expression.Lambda<Func<object, object[], object>>(block, targetInstance, objectArray); 251internal static Func<object, object[], object> GetFunc(CodeActivityMetadata metadata, MethodInfo methodInfo, 252MruCache<MethodInfo, Func<object, object[], object>> cache, ReaderWriterLockSlim locker, bool valueTypeReference = false) 254Func<object, object[], object> func = null; 271Func<object, object[], object> result = null;
System\Activities\Expressions\Multiply.cs (3)
19static Func<TLeft, TRight, TResult> checkedOperationFunction; 20static Func<TLeft, TRight, TResult> uncheckedOperationFunction; 61ref Func<TLeft, TRight, TResult> operationFunction,
System\Activities\Expressions\NotEqual.cs (1)
17static Func<TLeft, TRight, TResult> operationFunction;
System\Activities\Expressions\Or.cs (1)
20static Func<TLeft, TRight, TResult> operationFunction;
System\Activities\Expressions\PropertyReference.cs (8)
16Func<object, object[], object> getFunc; 17Func<object, object[], object> setFunc; 21static MruCache<MethodInfo, Func<object, object[], object>> funcCache = 22new MruCache<MethodInfo, Func<object, object[], object>>(MethodCallExpressionHelper.FuncCacheCapacity); 112Func<object, object[], object> getFunc; 113Func<object, object[], object> setFunc; 115public PropertyLocation(PropertyInfo propertyInfo, Func<object, object[], object> getFunc, 116Func<object, object[], object> setFunc, object owner)
System\Activities\Expressions\Subtract.cs (3)
19static Func<TLeft, TRight, TResult> checkedOperationFunction; 20static Func<TLeft, TRight, TResult> uncheckedOperationFunction; 61ref Func<TLeft, TRight, TResult> operationFunction,
System\Activities\Expressions\ValueTypeIndexerReference.cs (8)
23Func<object, object[], object> getFunc; 24Func<object, object[], object> setFunc; 26static MruCache<MethodInfo, Func<object, object[], object>> funcCache = 27new MruCache<MethodInfo, Func<object, object[], object>>(MethodCallExpressionHelper.FuncCacheCapacity); 124Func<object, object[], object> getFunc; 125Func<object, object[], object> setFunc; 128Func<object, object[], object> getFunc, Func<object, object[], object> setFunc)
System\Activities\Expressions\ValueTypePropertyReference.cs (8)
18Func<object, object[], object> getFunc; 19Func<object, object[], object> setFunc; 24static MruCache<MethodInfo, Func<object, object[], object>> funcCache = 25new MruCache<MethodInfo, Func<object, object[], object>>(MethodCallExpressionHelper.FuncCacheCapacity); 114Func<object, object[], object> getFunc; 115Func<object, object[], object> setFunc; 117public PropertyLocation(PropertyInfo propertyInfo, Func<object, object[], object> getFunc, 118Func<object, object[], object> setFunc, Location<TOperand> ownerLocation)
System\Activities\Runtime\ActivityInstanceMap.cs (1)
606Func<ActivityInstance, ActivityExecutor, bool> processInstanceCallback = new Func<ActivityInstance, ActivityExecutor, bool>(OnActivityInstanceLoaded);
System\Activities\Statements\InvokeMethod.cs (2)
28static MruCache<MethodInfo, Func<object, object[], object>> funcCache = 29new MruCache<MethodInfo, Func<object, object[], object>>(MethodCallExpressionHelper.FuncCacheCapacity);
System\Activities\Statements\MethodExecutor.cs (1)
127internal object InvokeAndUnwrapExceptions(Func<object, object[], object> func, object targetInstance, object[] actualParameters)
System\Activities\Statements\MethodResolver.cs (8)
181public void DetermineMethodInfo(CodeActivityMetadata metadata, MruCache<MethodInfo, Func<object, object[], object>> funcCache, ReaderWriterLockSlim locker, 564Func<object, object[], object> func; 569MruCache<MethodInfo, Func<object, object[], object>> funcCache, 616Func<object, object[], object> beginFunc; 617Func<object, object[], object> endFunc; 622MruCache<MethodInfo, Func<object, object[], object>> funcCache, 680Func<object, object[], object> asyncFunc; 685MruCache<MethodInfo, Func<object, object[], object>> funcCache,
System.Activities.Core.Presentation (2)
System\ServiceModel\Activities\Presentation\ReceiveDesigner.xaml.cs (1)
170Func<ModelItem, object, object> callback = CreateSendReply;
System\ServiceModel\Activities\Presentation\SendDesigner.xaml.cs (1)
173Func<ModelItem, object, object> callback = CreateReceiveReply;
System.Activities.Presentation (14)
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (4)
436if (clipboardObjects.Count == 3 && clipboardObjects[1] is Func<ModelItem, object, object>) 438var factoryMethod = (Func<ModelItem, object, object>)clipboardObjects[1]; 566internal static void PutCallbackOnClipBoard(Func<ModelItem, object, object> callbackMethod, Type callbackResultType, object context)
System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (2)
22private Func<ValidationReason, CancellationToken, TValidationResult> validationWork; 33internal BackgroundValidationSynchronizer(TaskDispatcher dispatcher, Func<ValidationReason, CancellationToken, TValidationResult> validationWork, Action<TValidationResult> updateWork)
System.Activities.Presentation\System\Activities\Presentation\Validation\ForegroundValidationSynchronizer.cs (2)
15private Func<ValidationReason, CancellationToken, TValidationResult> validationWork; 18internal ForegroundValidationSynchronizer(TaskDispatcher dispatcher, Func<ValidationReason, CancellationToken, TValidationResult> validationWork, Action<TValidationResult> updateWork)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (3)
254public Func<DataGrid, object, object> NotifyNewRowAddedCallback 330public Func<DataGridCell, object, ModelProperty> LoadDynamicContentDataCallback 342public Func<DataGridCell, object, DialogPropertyValueEditor> LoadCustomPropertyValueEditorCallback
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
135Func<WorkflowViewElement, bool, Visibility> navigateToParentFunction; 136Func<WorkflowViewElement, bool, Visibility> navigateToChildFunction;
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
730Func<TypeNode, string, bool> matchAlgorithm = SearchAction.MatchShortName;
System.Configuration (3)
System\Configuration\TypeUtil.cs (3)
169var createDelegateDel = (Func<Type, MethodInfo, Delegate>)dm.CreateDelegate(typeof(Func<Type, MethodInfo, Delegate>));
System.Core (132)
Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs (3)
169var @this = (CallSite<Func<CallSite, T0, TRet>>)site; 170Func<CallSite, T0, TRet>[] applicable; 171Func<CallSite, T0, TRet> rule, originalRule = @this.Target;
Microsoft\Scripting\Compiler\DelegateHelpers.Generated.cs (1)
236case 3: return typeof(Func<,,>).MakeGenericType(types);
System\FuncAndAction.cs (1)
14[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Func<,,>))]
System\Linq\Enumerable.cs (34)
24public static IEnumerable<TSource> Where<TSource>(this IEnumerable<TSource> source, Func<TSource, int, bool> predicate) { 30static IEnumerable<TSource> WhereIterator<TSource>(IEnumerable<TSource> source, Func<TSource, int, bool> predicate) { 47public static IEnumerable<TResult> Select<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, int, TResult> selector) { 53static IEnumerable<TResult> SelectIterator<TSource, TResult>(IEnumerable<TSource> source, Func<TSource, int, TResult> selector) { 543public static IEnumerable<TResult> SelectMany<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, int, IEnumerable<TResult>> selector) { 549static IEnumerable<TResult> SelectManyIterator<TSource, TResult>(IEnumerable<TSource> source, Func<TSource, int, IEnumerable<TResult>> selector) { 558public static IEnumerable<TResult> SelectMany<TSource, TCollection, TResult>(this IEnumerable<TSource> source, Func<TSource, int, IEnumerable<TCollection>> collectionSelector, Func<TSource, TCollection, TResult> resultSelector) 566static IEnumerable<TResult> SelectManyIterator<TSource, TCollection, TResult>(IEnumerable<TSource> source, Func<TSource, int, IEnumerable<TCollection>> collectionSelector, Func<TSource, TCollection, TResult> resultSelector){ 576public static IEnumerable<TResult> SelectMany<TSource, TCollection, TResult>(this IEnumerable<TSource> source, Func<TSource, IEnumerable<TCollection>> collectionSelector, Func<TSource, TCollection, TResult> resultSelector) { 583static IEnumerable<TResult> SelectManyIterator<TSource, TCollection, TResult>(IEnumerable<TSource> source, Func<TSource, IEnumerable<TCollection>> collectionSelector, Func<TSource, TCollection, TResult> resultSelector) { 618public static IEnumerable<TSource> TakeWhile<TSource>(this IEnumerable<TSource> source, Func<TSource, int, bool> predicate) { 624static IEnumerable<TSource> TakeWhileIterator<TSource>(IEnumerable<TSource> source, Func<TSource, int, bool> predicate) { 661public static IEnumerable<TSource> SkipWhile<TSource>(this IEnumerable<TSource> source, Func<TSource, int, bool> predicate) { 667static IEnumerable<TSource> SkipWhileIterator<TSource>(IEnumerable<TSource> source, Func<TSource, int, bool> predicate) { 677public static IEnumerable<TResult> Join<TOuter, TInner, TKey, TResult>(this IEnumerable<TOuter> outer, IEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, TInner, TResult> resultSelector) { 686public static IEnumerable<TResult> Join<TOuter, TInner, TKey, TResult>(this IEnumerable<TOuter> outer, IEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, TInner, TResult> resultSelector, IEqualityComparer<TKey> comparer) { 695static IEnumerable<TResult> JoinIterator<TOuter, TInner, TKey, TResult>(IEnumerable<TOuter> outer, IEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, TInner, TResult> resultSelector, IEqualityComparer<TKey> comparer) { 707public static IEnumerable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this IEnumerable<TOuter> outer, IEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, IEnumerable<TInner>, TResult> resultSelector) { 716public static IEnumerable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this IEnumerable<TOuter> outer, IEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, IEnumerable<TInner>, TResult> resultSelector, IEqualityComparer<TKey> comparer) { 725static IEnumerable<TResult> GroupJoinIterator<TOuter, TInner, TKey, TResult>(IEnumerable<TOuter> outer, IEnumerable<TInner> inner, Func<TOuter, TKey> outerKeySelector, Func<TInner, TKey> innerKeySelector, Func<TOuter, IEnumerable<TInner>, TResult> resultSelector, IEqualityComparer<TKey> comparer) { 784public static IEnumerable<TResult> GroupBy<TSource, TKey, TResult>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TKey, IEnumerable<TSource>, TResult> resultSelector){ 788public static IEnumerable<TResult> GroupBy<TSource, TKey, TElement, TResult>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, Func<TKey, IEnumerable<TElement>, TResult> resultSelector){ 792public static IEnumerable<TResult> GroupBy<TSource, TKey, TResult>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TKey, IEnumerable<TSource>, TResult> resultSelector, IEqualityComparer<TKey> comparer){ 796public static IEnumerable<TResult> GroupBy<TSource, TKey, TElement, TResult>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, Func<TKey, IEnumerable<TElement>, TResult> resultSelector, IEqualityComparer<TKey> comparer){ 811public static IEnumerable<TResult> Zip<TFirst, TSecond, TResult>(this IEnumerable<TFirst> first, IEnumerable<TSecond> second, Func<TFirst, TSecond, TResult> resultSelector) { 818static IEnumerable<TResult> ZipIterator<TFirst, TSecond, TResult>(IEnumerable<TFirst> first, IEnumerable<TSecond> second, Func<TFirst, TSecond, TResult> resultSelector) { 1379public static TSource Aggregate<TSource>(this IEnumerable<TSource> source, Func<TSource, TSource, TSource> func) 1391public static TAccumulate Aggregate<TSource, TAccumulate>(this IEnumerable<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func) { 1399public static TResult Aggregate<TSource, TAccumulate, TResult>(this IEnumerable<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func, Func<TAccumulate, TResult> resultSelector) { 2237public IEnumerable<TResult> ApplyResultSelector<TResult>(Func<TKey, IEnumerable<TElement>, TResult> resultSelector){ 2489Func<TKey, IEnumerable<TElement>, TResult> resultSelector; 2491public GroupedEnumerable(IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, Func<TKey, IEnumerable<TElement>, TResult> resultSelector, IEqualityComparer<TKey> comparer){
System\Linq\IQueryable.cs (21)
49private static MethodInfo GetMethodInfo<T1, T2, T3>(Func<T1, T2, T3> f, T1 unused1, T2 unused2) { 103public static IQueryable<TSource> Where<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate) { 151public static IQueryable<TResult> Select<TSource,TResult>(this IQueryable<TSource> source, Expression<Func<TSource, int, TResult>> selector) { 177public static IQueryable<TResult> SelectMany<TSource,TResult>(this IQueryable<TSource> source, Expression<Func<TSource, int, IEnumerable<TResult>>> selector) { 190public static IQueryable<TResult> SelectMany<TSource, TCollection, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, int, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector){ 205public static IQueryable<TResult> SelectMany<TSource,TCollection,TResult>(this IQueryable<TSource> source, Expression<Func<TSource, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector) { 226public static IQueryable<TResult> Join<TOuter,TInner,TKey,TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter,TKey>> outerKeySelector, Expression<Func<TInner,TKey>> innerKeySelector, Expression<Func<TOuter,TInner,TResult>> resultSelector) { 251public static IQueryable<TResult> Join<TOuter, TInner, TKey, TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, TInner, TResult>> resultSelector, IEqualityComparer<TKey> comparer) { 277public static IQueryable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, IEnumerable<TInner>, TResult>> resultSelector) { 301public static IQueryable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, IEnumerable<TInner>, TResult>> resultSelector, IEqualityComparer<TKey> comparer) { 455public static IQueryable<TSource> TakeWhile<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate) { 492public static IQueryable<TSource> SkipWhile<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate) { 561public static IQueryable<TResult> GroupBy<TSource, TKey, TElement, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, Expression<Func<TKey, IEnumerable<TElement>, TResult>> resultSelector) 579public static IQueryable<TResult> GroupBy<TSource, TKey, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector,Expression<Func<TKey, IEnumerable<TSource>, TResult>> resultSelector) 595public static IQueryable<TResult> GroupBy<TSource, TKey, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TKey, IEnumerable<TSource>, TResult>> resultSelector, IEqualityComparer<TKey> comparer) 611public static IQueryable<TResult> GroupBy<TSource, TKey, TElement, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, Expression<Func<TKey, IEnumerable<TElement>, TResult>> resultSelector, IEqualityComparer<TKey> comparer) 664public static IQueryable<TResult> Zip<TFirst, TSecond, TResult>(this IQueryable<TFirst> source1, IEnumerable<TSecond> source2, Expression<Func<TFirst, TSecond, TResult>> resultSelector) { 1639public static TSource Aggregate<TSource>(this IQueryable<TSource> source, Expression<Func<TSource,TSource,TSource>> func) { 1652public static TAccumulate Aggregate<TSource,TAccumulate>(this IQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate,TSource,TAccumulate>> func) { 1665public static TResult Aggregate<TSource,TAccumulate,TResult>(this IQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate,TSource,TAccumulate>> func, Expression<Func<TAccumulate,TResult>> selector) {
System\Linq\Parallel\Enumerables\AggregationMinMaxHelpers.cs (4)
32Func<Pair<bool, T>, T, Pair<bool, T>> intermediateReduce = MakeIntermediateReduceFunction(sign); 33Func<Pair<bool, T>, Pair<bool, T>, Pair<bool, T>> finalReduce = MakeFinalReduceFunction(sign); 65private static Func<Pair<bool, T>, T, Pair<bool, T>> MakeIntermediateReduceFunction(int sign) 89private static Func<Pair<bool, T>, Pair<bool, T>, Pair<bool, T>> MakeFinalReduceFunction(int sign)
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (4)
61private Func<TIntermediate, TInput, TIntermediate> m_intermediateReduce; 64private Func<TIntermediate, TIntermediate, TIntermediate> m_finalReduce; 80Func<TIntermediate, TInput, TIntermediate> intermediateReduce, 81Func<TIntermediate, TIntermediate, TIntermediate> finalReduce,
System\Linq\Parallel\QueryOperators\Binary\GroupJoinQueryOperator.cs (2)
35private readonly Func<TLeftInput, IEnumerable<TRightInput>, TOutput> m_resultSelector; // The result selection routine. 45Func<TLeftInput, IEnumerable<TRightInput>, TOutput> resultSelector,
System\Linq\Parallel\QueryOperators\Binary\HashJoinQueryOperatorEnumerator.cs (4)
44private readonly Func<TLeftInput, TRightInput, TOutput> m_singleResultSelector; // Single result selector. 45private readonly Func<TLeftInput, IEnumerable<TRightInput>, TOutput> m_groupResultSelector; // Group result selector. 67Func<TLeftInput, TRightInput, TOutput> singleResultSelector, 68Func<TLeftInput, IEnumerable<TRightInput>, TOutput> groupResultSelector,
System\Linq\Parallel\QueryOperators\Binary\JoinQueryOperator.cs (2)
51private readonly Func<TLeftInput, TRightInput, TOutput> m_resultSelector; // The result selection routine. 61Func<TLeftInput, TRightInput, TOutput> resultSelector,
System\Linq\Parallel\QueryOperators\Binary\ZipQueryOperator.cs (5)
35private readonly Func<TLeftInput, TRightInput, TOutput> m_resultSelector; // To select result elements. 52Func<TLeftInput, TRightInput, TOutput> resultSelector) 62Func<TLeftInput, TRightInput, TOutput> resultSelector) 167private readonly Func<TLeftInput, TRightInput, TOutput> m_resultSelector; // To select result elements. 174Func<TLeftInput, TRightInput, TOutput> resultSelector, int partitionCount, bool preferStriping)
System\Linq\Parallel\QueryOperators\Unary\IndexedSelectQueryOperator.cs (4)
32private readonly Func<TInput, int, TOutput> m_selector; 48Func<TInput, int, TOutput> selector) 142private readonly Func<TInput, int, TOutput> m_selector; // The actual select function. 148internal IndexedSelectQueryOperatorEnumerator(QueryOperatorEnumerator<TInput, int> source, Func<TInput, int, TOutput> selector)
System\Linq\Parallel\QueryOperators\Unary\IndexedWhereQueryOperator.cs (4)
31private Func<TInputOutput, int, bool> m_predicate; 47Func<TInputOutput, int, bool> predicate) 147private readonly Func<TInputOutput, int, bool> m_predicate; // The predicate used for filtering. 154internal IndexedWhereQueryOperatorEnumerator(QueryOperatorEnumerator<TInputOutput, int> source, Func<TInputOutput, int, bool> predicate,
System\Linq\Parallel\QueryOperators\Unary\SelectManyQueryOperator.cs (4)
40private readonly Func<TLeftInput, int, IEnumerable<TRightInput>> m_indexedRightChildSelector; // To select a new child each iteration. 41private readonly Func<TLeftInput, TRightInput, TOutput> m_resultSelector; // An optional result selection function. 58Func<TLeftInput, int, IEnumerable<TRightInput>> indexedRightChildSelector, 59Func<TLeftInput, TRightInput, TOutput> resultSelector)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (6)
50private Func<TResult, int, bool> m_indexedPredicate; 72Func<TResult, int, bool> indexedPredicate, bool take) 143Func<TResult, TKey, bool> convertedIndexedPredicate = (Func<TResult, TKey, bool>)(object)m_indexedPredicate; 213private readonly Func<TResult, TKey, bool> m_indexedPredicate; // The actual index-based predicate function. 233QueryOperatorEnumerator<TResult, TKey> source, Func<TResult, bool> predicate, Func<TResult, TKey, bool> indexedPredicate, bool take,
System\Linq\ParallelEnumerable.cs (33)
602public static ParallelQuery<TSource> Where<TSource>(this ParallelQuery<TSource> source, Func<TSource, int, bool> predicate) 649this ParallelQuery<TSource> source, Func<TSource, int, TResult> selector) 679this ParallelQuery<TFirst> first, ParallelQuery<TSecond> second, Func<TFirst, TSecond, TResult> resultSelector) 708this ParallelQuery<TFirst> first, IEnumerable<TSecond> second, Func<TFirst, TSecond, TResult> resultSelector) 742Func<TOuter, TInner, TResult> resultSelector) 772Func<TOuter, TInner, TResult> resultSelector) 802Func<TOuter, TInner, TResult> resultSelector, IEqualityComparer<TKey> comparer) 839Func<TOuter, TInner, TResult> resultSelector, IEqualityComparer<TKey> comparer) 874Func<TOuter, IEnumerable<TInner>, TResult> resultSelector) 905Func<TOuter, IEnumerable<TInner>, TResult> resultSelector) 936Func<TOuter, IEnumerable<TInner>, TResult> resultSelector, IEqualityComparer<TKey> comparer) 974Func<TOuter, IEnumerable<TInner>, TResult> resultSelector, IEqualityComparer<TKey> comparer) 1022this ParallelQuery<TSource> source, Func<TSource, int, IEnumerable<TResult>> selector) 1052Func<TSource, TCollection, TResult> resultSelector) 1087this ParallelQuery<TSource> source, Func<TSource, int, IEnumerable<TCollection>> collectionSelector, 1088Func<TSource, TCollection, TResult> resultSelector) 1460this ParallelQuery<TSource> source, Func<TSource, TKey> keySelector, Func<TKey, IEnumerable<TSource>, TResult> resultSelector) 1492this ParallelQuery<TSource> source, Func<TSource, TKey> keySelector, Func<TKey, IEnumerable<TSource>, TResult> resultSelector, IEqualityComparer<TKey> comparer) 1522this ParallelQuery<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, Func<TKey, IEnumerable<TElement>, TResult> resultSelector) 1553this ParallelQuery<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, Func<TKey, IEnumerable<TElement>, TResult> resultSelector, IEqualityComparer<TKey> comparer) 1579Func<T, T, T> reduce, T seed, bool seedIsSpecified, bool throwIfEmpty, QueryAggregationOptions options) 1603this ParallelQuery<TSource> source, TAccumulate seed, bool seedIsSpecified, Func<TAccumulate, TSource, TAccumulate> func) 1675this ParallelQuery<TSource> source, Func<TSource, TSource, TSource> func) 1681this ParallelQuery<TSource> source, Func<TSource, TSource, TSource> func, QueryAggregationOptions options) 1722this ParallelQuery<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func) 1728this ParallelQuery<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func, QueryAggregationOptions options) 1761this ParallelQuery<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func, 1822this ParallelQuery<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> updateAccumulatorFunc, 1823Func<TAccumulate, TAccumulate, TAccumulate> combineAccumulatorsFunc, Func<TAccumulate, TResult> resultSelector) 1877Func<TAccumulate, TSource, TAccumulate> updateAccumulatorFunc, 1878Func<TAccumulate, TAccumulate, TAccumulate> combineAccumulatorsFunc, 4186public static ParallelQuery<TSource> TakeWhile<TSource>(this ParallelQuery<TSource> source, Func<TSource, int, bool> predicate) 4270public static ParallelQuery<TSource> SkipWhile<TSource>(this ParallelQuery<TSource> source, Func<TSource, int, bool> predicate)
System.Data (14)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (4)
436if (clipboardObjects.Count == 3 && clipboardObjects[1] is Func<ModelItem, object, object>) 438var factoryMethod = (Func<ModelItem, object, object>)clipboardObjects[1]; 566internal static void PutCallbackOnClipBoard(Func<ModelItem, object, object> callbackMethod, Type callbackResultType, object context)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (2)
22private Func<ValidationReason, CancellationToken, TValidationResult> validationWork; 33internal BackgroundValidationSynchronizer(TaskDispatcher dispatcher, Func<ValidationReason, CancellationToken, TValidationResult> validationWork, Action<TValidationResult> updateWork)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ForegroundValidationSynchronizer.cs (2)
15private Func<ValidationReason, CancellationToken, TValidationResult> validationWork; 18internal ForegroundValidationSynchronizer(TaskDispatcher dispatcher, Func<ValidationReason, CancellationToken, TValidationResult> validationWork, Action<TValidationResult> updateWork)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (3)
254public Func<DataGrid, object, object> NotifyNewRowAddedCallback 330public Func<DataGridCell, object, ModelProperty> LoadDynamicContentDataCallback 342public Func<DataGridCell, object, DialogPropertyValueEditor> LoadCustomPropertyValueEditorCallback
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
135Func<WorkflowViewElement, bool, Visibility> navigateToParentFunction; 136Func<WorkflowViewElement, bool, Visibility> navigateToChildFunction;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
730Func<TypeNode, string, bool> matchAlgorithm = SearchAction.MatchShortName;
System.Data.DataSetExtensions (2)
System\Data\LinqDataView.cs (2)
29internal Func<object, DataRow, int> comparerKeyRow; // comparer for DataView.Find(.. 70Func<object, DataRow, int> comparerKeyRow,
System.Data.Entity (108)
System\Data\Common\CommandTrees\DbLambda.cs (1)
120public static DbLambda Create(TypeUsage argument1Type, TypeUsage argument2Type, Func<DbExpression, DbExpression, DbExpression> lambdaFunction)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (2)
263private DbExpression VisitTypeUnary(DbUnaryExpression expression, TypeUsage type, Func<DbExpression, TypeUsage, DbExpression> callback) 279private DbExpression VisitBinary(DbBinaryExpression expression, Func<DbExpression, DbExpression, DbExpression> callback)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (7)
1791private static DbExpressionBinding[] ConvertToBinding(DbExpression left, string leftArgumentName, DbExpression right, string rightArgumentName, Func<DbExpression, DbExpression, DbExpression> argument, string argumentName, out DbExpression argumentExp) 1907private static DbApplyExpression CreateApply(DbExpression source, Func<DbExpression, KeyValuePair<string, DbExpression>> apply, Func<DbExpressionBinding, DbExpressionBinding, DbApplyExpression> resultBuilder) 2064public static DbJoinExpression FullOuterJoin(this DbExpression left, DbExpression right, Func<DbExpression, DbExpression, DbExpression> joinCondition) 2098public static DbJoinExpression InnerJoin(this DbExpression left, DbExpression right, Func<DbExpression, DbExpression, DbExpression> joinCondition) 2132public static DbJoinExpression LeftOuterJoin(this DbExpression left, DbExpression right, Func<DbExpression, DbExpression, DbExpression> joinCondition) 2222public static DbProjectExpression Join<TSelector>(this DbExpression outer, DbExpression inner, Func<DbExpression, DbExpression> outerKey, Func<DbExpression, DbExpression> innerKey, Func<DbExpression, DbExpression, TSelector> selector) 2437public static DbProjectExpression SelectMany<TSelector>(this DbExpression source, Func<DbExpression, DbExpression> apply, Func<DbExpression, DbExpression, TSelector> selector)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
175private static EnumerableValidator<TElementIn, TElementOut, TResult> CreateValidator<TElementIn, TElementOut, TResult>(IEnumerable<TElementIn> argument, string argumentName, Func<TElementIn, int, TElementOut> convertElement, Func<List<TElementOut>, TResult> createResult)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\EnumerableValidator.cs (6)
37private Func<TElementIn, int, TElementOut> map; 39private Func<TElementIn, int, string> deriveName; 62public Func<TElementIn, int, TElementOut> ConvertElement { get { return this.map; } set { this.map = value; } } 74public Func<TElementIn, int, string> GetName { get { return this.deriveName; } set { this.deriveName = value; } } 102Func<TElementIn, int, TElementOut> map, 104Func<TElementIn, int, string> deriveName)
System\Data\Common\EntitySql\CqlQuery.cs (2)
163Func<AST.Node, ParserOptions, TResult> compilationFunction) 270Func<SemanticAnalyzer, AST.Node, TResult> analysisFunction)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (11)
54Func<TypeUsage, TypeUsage, IEnumerable<TypeUsage>> flattenParameterType, 55Func<TypeUsage, TypeUsage, bool> isPromotableTo, 56Func<TypeUsage, TypeUsage, bool> isStructurallyEqual, 88Func<TypeUsage, TypeUsage, IEnumerable<TypeUsage>> flattenParameterType, 89Func<TypeUsage, TypeUsage, bool> isPromotableTo, 90Func<TypeUsage, TypeUsage, bool> isStructurallyEqual, 196Func<TypeUsage, TypeUsage, IEnumerable<TypeUsage>> flattenParameterType, 197Func<TypeUsage, TypeUsage, bool> isPromotableTo, 198Func<TypeUsage, TypeUsage, bool> isStructurallyEqual, 282Func<TypeUsage, TypeUsage, bool> isPromotableTo, 283Func<TypeUsage, TypeUsage, bool> isStructurallyEqual)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (5)
310private static readonly MethodInfo s_userMaterializationFuncInvokeMethod = typeof(Func<DbDataReader, object[], object>).GetMethod("Invoke"); 372var userMaterializationFunc = Expression.Lambda<Func<DbDataReader, object[], object>>(nex, _reader, _values).Compile(); 448var userMaterializationFunc = Expression.Lambda<Func<DbDataReader, object[], object>>(newMemberInit, _reader, _values).Compile();
System\Data\Common\Internal\Materialization\Shaper.cs (8)
810private readonly Func<DbDataReader, int, T> getTypedValue; 811private readonly Func<DbDataReader, int, object> getUntypedValue; 813protected ErrorHandlingValueReader(Func<DbDataReader, int, T> typedValueAccessor, Func<DbDataReader, int, object> untypedValueAccessor) 916internal ColumnErrorHandlingValueReader(Func<DbDataReader, int, TColumn> typedAccessor, Func<DbDataReader, int, object> untypedAccessor) 944internal PropertyErrorHandlingValueReader(string propertyName, string typeName, Func<DbDataReader, int, TProperty> typedAccessor, Func<DbDataReader, int, object> untypedAccessor)
System\Data\Common\Utils\Helpers.cs (1)
92internal static TNode BuildBalancedTreeInPlace<TNode>(IList<TNode> nodes, Func<TNode, TNode, TNode> combinator)
System\Data\Mapping\StorageMappingItemLoader.cs (1)
3397private static void AddToSchemaErrorWithMemberAndStructure(Func<object, object, string> messageFormat, string errorMember,
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (1)
145Func<DbDataRecord, int, EntityKey> getEntityKey = (record, ordinal) => (EntityKey)record[ordinal];
System\Data\Mapping\ViewGeneration\CqlGeneration\JoinCqlBlock.cs (1)
105Func<DbExpression, DbExpression, DbExpression> joinConditionFunc = m_onClauses[i - 1].AsCqt;
System\Data\Mapping\ViewGeneration\Structures\BoolExpressionVisitors.cs (1)
361private DbExpression VisitAndOr(DomainTreeExpr expression, Func<DbExpression, DbExpression, DbExpression> op)
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
458internal ErrorLog.Record VerifyKeysPresent(Cell ownerCell, Func<object, object, string> formatEntitySetMessage,
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (9)
246Func<object, object, string> resourceName1 = null; 256resourceName1 = isTypeConstant ? (Func<object, object, string>)Strings.ViewGen_OneOfConst_IsNotEqualTo : (Func<object, object, string>)Strings.ViewGen_OneOfConst_MustNotBeEqualTo; 260resourceName1 = isTypeConstant ? (Func<object, object, string>)Strings.ViewGen_OneOfConst_IsNotOneOf : (Func<object, object, string>)Strings.ViewGen_OneOfConst_MustNotBeOneOf; 271resourceName1 = isTypeConstant ? (Func<object, object, string>)Strings.ViewGen_OneOfConst_IsEqualTo : (Func<object, object, string>)Strings.ViewGen_OneOfConst_MustBeEqualTo; 275resourceName1 = isTypeConstant ? (Func<object, object, string>)Strings.ViewGen_OneOfConst_IsOneOf : (Func<object, object, string>)Strings.ViewGen_OneOfConst_MustBeOneOf;
System\Data\Metadata\Edm\AssociationEndMember.cs (2)
43private Func<RelationshipManager, RelatedEnd, RelatedEnd> _getRelatedEndMethod = null; 46internal Func<RelationshipManager, RelatedEnd, RelatedEnd> GetRelatedEnd
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (5)
96Func<RelationshipManager, RelatedEnd, RelatedEnd> getRelatedEnd = sourceMember.GetRelatedEnd; 466private static Func<RelationshipManager, RelatedEnd, RelatedEnd> CreateGetRelatedEndMethod(AssociationEndMember sourceMember, AssociationEndMember targetMember) 481return (Func<RelationshipManager, RelatedEnd, RelatedEnd>)getRelatedEndDelegate; 484private static Func<RelationshipManager, RelatedEnd, RelatedEnd> CreateGetRelatedEndMethod<TSource, TTarget>(AssociationEndMember sourceMember, AssociationEndMember targetMember, NavigationPropertyAccessor sourceAccessor, NavigationPropertyAccessor targetAccessor) 488Func<RelationshipManager, RelatedEnd, RelatedEnd> getRelatedEnd;
System\Data\Metadata\Edm\NavigationPropertyAccessor.cs (2)
38private Func<object, object, bool> _collectionRemove; 91public Func<object, object, bool> CollectionRemove
System\Data\Metadata\ObjectLayer\AssemblyCache.cs (1)
42Debug.Assert(loaderCookie == null || loaderCookie is Func<Assembly, ObjectItemLoadingSessionData, ObjectItemAssemblyLoader>, "This is a bad loader cookie");
System\Data\Metadata\ObjectLayer\ObjectItemAssemblyLoader.cs (4)
117Debug.Assert(loaderCookie == null || loaderCookie is Func<Assembly, ObjectItemLoadingSessionData, ObjectItemAssemblyLoader>, "Non loader cookie passed in"); 118return IsAttributeLoader(loaderCookie as Func<Assembly, ObjectItemLoadingSessionData, ObjectItemAssemblyLoader>); 121internal static bool IsAttributeLoader(Func<Assembly, ObjectItemLoadingSessionData, ObjectItemAssemblyLoader> loaderFactory) 131internal static bool IsConventionLoader(Func<Assembly, ObjectItemLoadingSessionData, ObjectItemAssemblyLoader> loaderFactory)
System\Data\Metadata\ObjectLayer\ObjectItemLoadingSessionData.cs (4)
18private Func<Assembly, ObjectItemLoadingSessionData, ObjectItemAssemblyLoader> _loaderFactory; 102internal Func<Assembly, ObjectItemLoadingSessionData, ObjectItemAssemblyLoader> ObjectItemAssemblyLoaderFactory 132Debug.Assert(loaderCookie == null || loaderCookie is Func<Assembly, ObjectItemLoadingSessionData, ObjectItemAssemblyLoader>, "This is a bad loader cookie"); 143_loaderFactory = (Func<Assembly, ObjectItemLoadingSessionData, ObjectItemAssemblyLoader>)loaderCookie;
System\Data\Objects\CompiledQuery.cs (2)
358public static Func<TArg0, TArg1, TResult> Compile<TArg0, TArg1, TResult>(Expression<Func<TArg0, TArg1, TResult>> query) where TArg0 : ObjectContext
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (3)
384internal static Expression Visit(Expression exp, Func<Expression, Func<Expression, Expression>, Expression> visit) 392private readonly Func<Expression, Func<Expression, Expression>, Expression> _visit; 393internal BasicExpressionVisitor(Func<Expression, Func<Expression, Expression>, Expression> visit)
System\Data\Objects\ELinq\Funcletizer.cs (1)
181Func<Expression, Func<Expression, Expression>, Expression> visit = (exp, baseVisit) =>
System\Data\Objects\ELinq\OrderByLifter.cs (1)
238Func<int, int, int> combineConstants)
System\Data\Objects\ELinq\TypeSystem.cs (1)
68case 2: delegateType = typeof(Func<,,>); break;
System\Data\Objects\Internal\EntityProxyFactory.cs (4)
888Type interceptorType = typeof(Func<,,>).MakeGenericType(typeBuilder, baseProperty.PropertyType, typeof(bool)); 889MethodInfo interceptorInvoke = TypeBuilder.GetMethod(interceptorType, typeof(Func<,,>).GetMethod("Invoke")); 1062static readonly MethodInfo s_Func_object_object_bool_Invoke = typeof(Func<object, object, bool>).GetMethod("Invoke", new Type[] { typeof(object), typeof(object) }); 1142_compareByteArraysField = typeBuilder.DefineField(EntityProxyFactory.CompareByteArraysFieldName, typeof(Func<object, object, bool>), FieldAttributes.Private | FieldAttributes.Static);
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (5)
33private readonly Func<object, string, object> _baseGetter; 38private readonly Func<object, object, object> Proxy_SetEntityWrapper; // IEntityWrapper Func(object proxy, IEntityWrapper value) 103Proxy_SetEntityWrapper = Expression.Lambda<Func<object, object, object>>( 116_baseGetter = Expression.Lambda<Func<object, string, object>>( 151public Func<object, string, object> BaseGetter
System\Data\Objects\Internal\LazyLoadBehavior.cs (2)
52internal static Func<TProxy, TItem, bool> GetInterceptorDelegate<TProxy, TItem>(EdmMember member, Func<object, object> getEntityWrapperDelegate) 56Func<TProxy, TItem, bool> interceptorDelegate = (proxy, item) => true;
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (3)
241private static Func<object, object, bool> CreateCollectionRemoveFunction(Type type, string propertyName) 248return (Func<object, object, bool>)removeFromCollection.Invoke(null, null); 251private static Func<object, object, bool> RemoveFromCollection<T>()
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
2138private DbExpression VisitSetOp(SetOp op, Node n, AliasGenerator alias, Func<DbExpression, DbExpression, DbExpression> setOpExpressionBuilder)
System\Data\SqlClient\SqlTypesAssembly.cs (9)
507private readonly Func<string, int, object> sqlGeographyFromWKTString; 508private readonly Func<byte[], int, object> sqlGeographyFromWKBByteArray; 509private readonly Func<System.Xml.XmlReader, int, object> sqlGeographyFromGMLReader; 511private readonly Func<string, int, object> sqlGeometryFromWKTString; 512private readonly Func<byte[], int, object> sqlGeometryFromWKBByteArray; 513private readonly Func<System.Xml.XmlReader, int, object> sqlGeometryFromGMLReader; 517private static Func<TArg, int, object> CreateStaticConstructorDelegate<TArg>(Type spatialType, string methodName) 528var ex = Expression.Lambda<Func<TArg, int, object>>(Expression.Call(null, staticCtorMethod, sqlData, sridParam), dataParam, sridParam); 529var result = ex.Compile();
System.Data.Linq (6)
CompiledQuery.cs (2)
48public static Func<TArg0, TArg1, TResult> Compile<TArg0, TArg1, TResult>(Expression<Func<TArg0, TArg1, TResult>> query) where TArg0 : DataContext {
SqlClient\Query\SqlMethodCallConverter.cs (3)
1516Func<string, char, string> getStringContainsPatternForced = SqlHelpers.GetStringContainsPatternForced; 1550Func<string, char, string> getStringStartsWithPatternForced = SqlHelpers.GetStringStartsWithPatternForced; 1584Func<string, char, string> getStringEndsWithPatternForced = SqlHelpers.GetStringEndsWithPatternForced;
SqlClient\Query\SqlRetyper.cs (1)
91Func<SqlExpression, SqlExpression, bool> needsRetype =
System.Data.Services (6)
System\Data\Services\Parsing\FunctionDescription.cs (4)
44private Func<Expression, Expression[], Expression> conversionFunction; 58public FunctionDescription(string name, Type[] parameterTypes, Func<Expression, Expression[], Expression> conversionFunction) 71Func<Expression, Expression[], Expression> conversionFunction, 82public Func<Expression, Expression[], Expression> ConversionFunction
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1267private static T VisitDottedExpandPaths<T>(ExpandedProjectionNode expandedNode, Func<T, string, T> action, T state, List<string> pathSegments)
System\Data\Services\WebUtil.cs (1)
1359internal static IEnumerable<TResult> Zip<T1, T2, TResult>(IEnumerable<T1> left, IEnumerable<T2> right, Func<T1, T2, TResult> resultSelector)
System.Data.Services.Client (8)
System\Data\Services\Client\ArraySet.cs (7)
62public bool Add(T item, Func<T, T, bool> equalityComparer) 88public bool Contains(T item, Func<T, T, bool> equalityComparer) 118public int IndexOf(T item, Func<T, T, bool> comparer) 129public int IndexOf<K>(K item, Func<T, K> select, Func<K, K, bool> comparer) 151public T Remove(T item, Func<T, T, bool> equalityComparer) 193public void Sort<K>(Func<T, K> selector, Func<K, K, int> comparer) 226internal Func<K, K, int> Comparer;
System\Data\Services\Client\BaseAsyncResult.cs (1)
293internal static IAsyncResult InvokeAsync(Func<AsyncCallback, object, IAsyncResult> asyncAction, AsyncCallback callback, object state)
System.Runtime.Serialization (3)
System\Xml\XmlDictionaryWriter.cs (3)
526Func<IAsyncResult, WriteValueAsyncResult, bool> writeBlockHandler; 528static Func<IAsyncResult, WriteValueAsyncResult, bool> handleWriteBlock = HandleWriteBlock; 529static Func<IAsyncResult, WriteValueAsyncResult, bool> handleWriteBlockAsync = HandleWriteBlockAsync;
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\InternalSendMessage.cs (2)
3199static bool EqualsOrdered<T>(IList<T> left, IList<T> right, Func<T, T, bool> equals) 3223static bool EqualsUnordered<T>(Collection<T> left, Collection<T> right, Func<T, T, bool> equals)
System.Web (6)
Util\AppVerifier.cs (2)
184internal static Func<AsyncCallback, object, IAsyncResult> WrapBeginMethodImpl(HttpApplication httpApplication, Func<AsyncCallback, object, IAsyncResult> beginMethod, Delegate originalDelegate, Action<AppVerifierException> errorHandler, CallStackCollectionBitMasks callStackMask) {
Util\FastDelegateCreator.cs (4)
18private static readonly Func<object, IntPtr, TDelegate> _factory = GetFactory(); 34private static Func<object, IntPtr, TDelegate> GetFactory() { 54return (Func<object, IntPtr, TDelegate>)dynamicMethod.CreateDelegate(typeof(Func<object, IntPtr, TDelegate>));
System.Web.DynamicData (2)
DynamicData\DynamicFilter.cs (2)
15private Func<MetaColumn, string, QueryableFilterUserControl> _filterLoader; 64internal DynamicFilter(Func<MetaColumn, string, QueryableFilterUserControl> filterLoader) {
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
611private static bool TryParseGeo<T>(string stringValue, Func<string, int, T> createSpatialTypeInstanceFunc, out T result)
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
167typeof(Func<,,>),
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (1)
207public Func<PropertyInfo, object, bool> IsSupportedPropertyResolver
System.Xml.Linq (4)
System\Xml\Linq\XComponentModel.cs (4)
402Func<XElement, XName, IEnumerable<T>> func; 406public XDeferredAxis(Func<XElement, XName, IEnumerable<T>> func, XElement element, XName name) { 438Func<XElement, XName, T> func; 442public XDeferredSingleton(Func<XElement, XName, T> func, XElement element, XName name) {
WindowsBase (2)
Shared\MS\Internal\ReaderWriterLockSlimWrapper.cs (2)
133internal bool WithReadLock<T1, T2, TResult>(Func<T1, T2, TResult> criticalAction, T1 arg1, T2 arg2, out TResult result) 207internal bool WithWriteLock<T1, T2, TResult>(Func<T1, T2, TResult> criticalAction, T1 arg1, T2 arg2, out TResult result)