cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (4)
437internal static IEnumerable<ModelItem> GetParentEnumerator(this ModelItem item, Func<ModelItem, bool> continueEnumerationPredicate)
455internal static string GetUniqueName(this ModelItemCollection collection, string nameDefaultPrefix, Func<ModelItem, string> nameGetter)
460internal static string GetUniqueName(this ModelItemDictionary dictionary, string nameDefaultPrefix, Func<ModelItem, string> nameGetter)
472internal static string GetUniqueName<T>(this IEnumerable<T> collection, string nameDefaultPrefix, Func<T, string> nameGetter)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
472Func<DesignTimeArgument, bool> checkForDuplicates = new Func<DesignTimeArgument, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, newName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetArgumentName(), identifierName));
491Func<DesignTimeArgument, bool> checkForOldNameDuplicates = new Func<DesignTimeArgument, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, oldName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetArgumentName(), identifier));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (5)
61Func<Type, bool> filter;
64public TypeBrowser(AssemblyContextControlItem assemblyContext, EditingContext context, Func<Type, bool> filter)
519Func<Type, bool> filter;
522public AssemblyNode(Assembly assembly, bool isLocal, Func<Type, bool> filter, EditingContext context)
573Func<Type, bool> typeFilter = this.filter;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (4)
160Func<DesignTimeVariable, bool> checkForDuplicates = new Func<DesignTimeVariable, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, newName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetVariableName(), identifierName));
179Func<DesignTimeVariable, bool> checkForOldNameDuplicates = new Func<DesignTimeVariable, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, oldName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetVariableName(), identifier));
1411Func<ModelItem, bool> checkForDuplicates =
1436Func<ModelItem, bool> checkForDuplicates =
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (8)
3968Func<Task, Task<bool>> moreFunc = null;
4029Func<Task, Task<int>> moreFunc = null;
4135Func<Task, Task<int>> moreFunc = null;
4284Func<Task, Task<bool>> moreFunc = null;
4407Func<Task, Task<bool>> moreFunc = null;
4508Func<Task, Task<T>> moreFunc = null;
4564private Task<T> ContinueRetryable<T>(Func<Task, Task<T>> moreFunc) {
4620private Task<T> InvokeRetryable<T>(Func<Task, Task<T>> moreFunc, TaskCompletionSource<T> source, IDisposable objectToDispose = null) {
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (24)
1776private static DbExpressionBinding ConvertToBinding<TResult>(DbExpression source, Func<DbExpression, TResult> argument, string argumentName, out TResult argumentResult)
1781private static DbExpressionBinding ConvertToBinding<TResult>(DbExpression source, string sourceName, Func<DbExpression, TResult> argument, string argumentName, out TResult argumentResult)
1907private static DbApplyExpression CreateApply(DbExpression source, Func<DbExpression, KeyValuePair<string, DbExpression>> apply, Func<DbExpressionBinding, DbExpressionBinding, DbApplyExpression> resultBuilder)
1933public static DbQuantifierExpression All(this DbExpression source, Func<DbExpression, DbExpression> predicate)
1982public static DbQuantifierExpression Any(this DbExpression source, Func<DbExpression, DbExpression> predicate)
2004public static DbApplyExpression CrossApply(this DbExpression source, Func<DbExpression, KeyValuePair<string, DbExpression>> apply)
2027public static DbApplyExpression OuterApply(this DbExpression source, Func<DbExpression, KeyValuePair<string, DbExpression>> apply)
2163public static DbJoinExpression Join(this DbExpression outer, DbExpression inner, Func<DbExpression, DbExpression> outerKey, Func<DbExpression, DbExpression> innerKey)
2222public static DbProjectExpression Join<TSelector>(this DbExpression outer, DbExpression inner, Func<DbExpression, DbExpression> outerKey, Func<DbExpression, DbExpression> innerKey, Func<DbExpression, DbExpression, TSelector> selector)
2258public static DbSortExpression OrderBy(this DbExpression source, Func<DbExpression, DbExpression> sortKey)
2285public static DbSortExpression OrderBy(this DbExpression source, Func<DbExpression, DbExpression> sortKey, string collation)
2310public static DbSortExpression OrderByDescending(this DbExpression source, Func<DbExpression, DbExpression> sortKey)
2337public static DbSortExpression OrderByDescending(this DbExpression source, Func<DbExpression, DbExpression> sortKey, string collation)
2368public static DbProjectExpression Select<TProjection>(this DbExpression source, Func<DbExpression, TProjection> projection)
2393public static DbProjectExpression SelectMany(this DbExpression source, Func<DbExpression, DbExpression> apply)
2437public static DbProjectExpression SelectMany<TSelector>(this DbExpression source, Func<DbExpression, DbExpression> apply, Func<DbExpression, DbExpression, TSelector> selector)
2490private static DbSortExpression CreateThenBy(DbSortExpression source, Func<DbExpression, DbExpression> sortKey, bool ascending, string collation, bool useCollation)
2531public static DbSortExpression ThenBy(this DbSortExpression source, Func<DbExpression, DbExpression> sortKey)
2557public static DbSortExpression ThenBy(this DbSortExpression source, Func<DbExpression, DbExpression> sortKey, string collation)
2581public static DbSortExpression ThenByDescending(this DbSortExpression source, Func<DbExpression, DbExpression> sortKey)
2607public static DbSortExpression ThenByDescending(this DbSortExpression source, Func<DbExpression, DbExpression> sortKey, string collation)
2629public static DbFilterExpression Where(this DbExpression source, Func<DbExpression, DbExpression> predicate)
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\Internal\PatternMatchRules.cs (45)
29private readonly Func<DbExpression, bool> isMatch;
30private readonly Func<DbExpression, DbExpression> process;
33private PatternMatchRule(Func<DbExpression, bool> matchFunc, Func<DbExpression, DbExpression> processor, ProcessedAction onProcessed)
59internal static PatternMatchRule Create(Func<DbExpression, bool> matchFunc, Func<DbExpression, DbExpression> processor)
67internal static PatternMatchRule Create(Func<DbExpression, bool> matchFunc, Func<DbExpression, DbExpression> processor, ProcessedAction onProcessed)
105internal static Func<DbExpression, DbExpression> Create(params PatternMatchRule[] rules)
123internal static Func<DbExpression, bool> And(Func<DbExpression, bool> pattern1, Func<DbExpression, bool> pattern2)
131internal static Func<DbExpression, bool> And(Func<DbExpression, bool> pattern1, Func<DbExpression, bool> pattern2, Func<DbExpression, bool> pattern3)
139internal static Func<DbExpression, bool> Or(Func<DbExpression, bool> pattern1, Func<DbExpression, bool> pattern2)
147internal static Func<DbExpression, bool> Or(Func<DbExpression, bool> pattern1, Func<DbExpression, bool> pattern2, Func<DbExpression, bool> pattern3)
168internal static Func<DbExpression, bool> AnyExpression { get { return (e => true); } }
173internal static Func<IEnumerable<DbExpression>, bool> AnyExpressions { get { return (elems => true); } }
188internal static Func<DbExpression, bool> MatchComplexType { get { return (e => TypeSemantics.IsComplexType(e.ResultType)); } }
193internal static Func<DbExpression, bool> MatchEntityType { get { return (e => TypeSemantics.IsEntityType(e.ResultType)); } }
198internal static Func<DbExpression, bool> MatchRowType { get { return (e => TypeSemantics.IsRowType(e.ResultType)); } }
207internal static Func<DbExpression, bool> MatchKind(DbExpressionKind kindToMatch)
215internal static Func<IEnumerable<DbExpression>, bool> MatchForAll(Func<DbExpression, bool> elementPattern)
252internal static Func<DbExpression, bool> MatchBinary()
269internal static Func<DbExpression, bool> MatchFilter(Func<DbExpression, bool> inputPattern, Func<DbExpression, bool> predicatePattern)
277internal static Func<DbExpression, bool> MatchProject(Func<DbExpression, bool> inputPattern, Func<DbExpression, bool> projectionPattern)
285internal static Func<DbExpression, bool> MatchCase(Func<IEnumerable<DbExpression>, bool> whenPattern, Func<IEnumerable<DbExpression>, bool> thenPattern, Func<DbExpression, bool> elsePattern)
293internal static Func<DbExpression, bool> MatchNewInstance() { return (e => e.ExpressionKind == DbExpressionKind.NewInstance); }
298internal static Func<DbExpression, bool> MatchNewInstance(Func<IEnumerable<DbExpression>, bool> argumentsPattern)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (7)
53Func<TypeUsage, IEnumerable<TypeUsage>> flattenArgumentType,
84Func<TFunctionMetadata, IList<TFunctionParameterMetadata>> getSignatureParams,
85Func<TFunctionParameterMetadata, TypeUsage> getParameterTypeUsage,
86Func<TFunctionParameterMetadata, ParameterMode> getParameterMode,
87Func<TypeUsage, IEnumerable<TypeUsage>> flattenArgumentType,
194Func<TFunctionParameterMetadata, TypeUsage> getParameterTypeUsage,
195Func<TFunctionParameterMetadata, ParameterMode> getParameterMode,
System\Data\Common\Internal\Materialization\CoordinatorFactory.cs (14)
29private static readonly Func<Shaper, bool> AlwaysTrue = s => true;
34private static readonly Func<Shaper, bool> AlwaysFalse = s => false;
55internal readonly Func<Shaper, bool> HasData;
60internal readonly Func<Shaper, bool> SetKeys;
65internal readonly Func<Shaper, bool> CheckKeys;
94protected CoordinatorFactory(int depth, int stateSlot, Func<Shaper, bool> hasData, Func<Shaper, bool> setKeys, Func<Shaper, bool> checkKeys, CoordinatorFactory[] nestedCoordinators, RecordStateFactory[] recordStateFactories)
172internal readonly Func<Shaper, IEntityWrapper> WrappedElement;
178internal readonly Func<Shaper, TElement> Element;
184internal readonly Func<Shaper, TElement> ElementWithErrorHandling;
189internal readonly Func<Shaper, ICollection<TElement>> InitializeCollection;
246private static Func<Shaper, bool> CompilePredicate(Expression predicate)
248Func<Shaper, bool> result;
System\Data\Common\Internal\Materialization\Shaper.cs (5)
110public TElement Discriminate<TElement>(object[] discriminatorValues, Func<object[], EntityType> discriminate, KeyValuePair<EntityType, Func<Shaper, TElement>>[] elementDelegates)
113Func<Shaper, TElement> elementDelegate = null;
114foreach (KeyValuePair<EntityType, Func<Shaper, TElement>> typeDelegatePair in elementDelegates)
181public IEntityWrapper HandleEntityAppendOnly<TEntity>(Func<Shaper, IEntityWrapper> constructEntityDelegate, EntityKey entityKey, EntitySet entitySet)
System\Data\Common\Internal\Materialization\Translator.cs (10)
254internal static Func<Shaper, TResult> Compile<TResult>(Expression body)
256var lambda = Expression.Lambda<Func<Shaper, TResult>>(body, Shaper_Parameter);
524private Expression<Func<Shaper, T>> TypedCreateInlineDelegate<T>(Expression body)
526Expression<Func<Shaper, T>> result = Expression.Lambda<Func<Shaper, T>>(body, Shaper_Parameter);
796typeof(Func<object, IPropertyAccessorStrategy>), typeof(Func<object, IChangeTrackingStrategy>), typeof(Func<object, IEntityKeyStrategy>) }, null);
1503Type typeDelegatePairType = typeof(KeyValuePair<EntityType, Func<Shaper, TElement>>);
1504ConstructorInfo typeDelegatePairConstructor = typeDelegatePairType.GetConstructor(new Type[] { typeof(EntityType), typeof(Func<Shaper, TElement>) });
System\Data\Mapping\StorageMappingItemLoader.cs (3)
928Func<EntityType, string> typeNotAssignableMessage,
1964Func<EntityType, string> registerEntityTypeMismatchError,
3390private static EdmSchemaError AddToSchemaErrorsWithMemberInfo(Func<object, string> messageFormat, string errorMember, StorageMappingErrorCode errorCode, string location, IXmlLineInfo lineInfo, IList<EdmSchemaError> parsingErrors)
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 (10)
117Func<Expression, bool> isClientConstant;
118Func<Expression, bool> isClientVariable;
176private static Func<Expression, bool> Nominate(Expression expression, Func<Expression, bool> localCriterion)
181Func<Expression, Func<Expression, Expression>, Expression> visit = (exp, baseVisit) =>
324private readonly Func<Expression, bool> _isClientConstant;
325private readonly Func<Expression, bool> _isClientVariable;
330Func<Expression, bool> isClientConstant,
331Func<Expression, bool> isClientVariable)
662internal QueryParameterExpression EscapeParameterForLike(Func<string, string> method)
System\Data\Objects\Internal\EntityWrapper.cs (18)
42Func<object, IPropertyAccessorStrategy> propertyStrategy, Func<object, IChangeTrackingStrategy> changeTrackingStrategy, Func<object, IEntityKeyStrategy> keyStrategy)
56internal EntityWrapperWithoutRelationships(TEntity entity, Func<object, IPropertyAccessorStrategy> propertyStrategy, Func<object, IChangeTrackingStrategy> changeTrackingStrategy, Func<object, IEntityKeyStrategy> keyStrategy)
103Func<object, IPropertyAccessorStrategy> propertyStrategy, Func<object, IChangeTrackingStrategy> changeTrackingStrategy, Func<object, IEntityKeyStrategy> keyStrategy)
117internal EntityWrapperWithRelationships(TEntity entity, Func<object, IPropertyAccessorStrategy> propertyStrategy, Func<object, IChangeTrackingStrategy> changeTrackingStrategy, Func<object, IEntityKeyStrategy> keyStrategy)
162Func<object, IPropertyAccessorStrategy> propertyStrategy, Func<object, IChangeTrackingStrategy> changeTrackingStrategy, Func<object, IEntityKeyStrategy> keyStrategy)
195Func<object, IPropertyAccessorStrategy> propertyStrategy, Func<object, IChangeTrackingStrategy> changeTrackingStrategy, Func<object, IEntityKeyStrategy> keyStrategy)
System\Data\Objects\Internal\EntityWrapperFactory.cs (22)
29private static readonly Memoizer<Type, Func<object, IEntityWrapper>> _delegateCache = new Memoizer<Type, Func<object, IEntityWrapper>>(CreateWrapperDelegate, null);
80private static Func<object, IEntityWrapper> CreateWrapperDelegate(Type entityType)
105return (Func<object, IEntityWrapper>)createDelegate.Invoke(null, new object[0]);
109private static Func<object, IEntityWrapper> CreateWrapperDelegateTypedLightweight<TEntity>()
116private static Func<object, IEntityWrapper> CreateWrapperDelegateTypedWithRelationships<TEntity>()
119Func<object, IPropertyAccessorStrategy> propertyAccessorStrategy;
120Func<object, IEntityKeyStrategy> keyStrategy;
121Func<object, IChangeTrackingStrategy> changeTrackingStrategy;
128private static Func<object, IEntityWrapper> CreateWrapperDelegateTypedWithoutRelationships<TEntity>()
130Func<object, IPropertyAccessorStrategy> propertyAccessorStrategy;
131Func<object, IEntityKeyStrategy> keyStrategy;
132Func<object, IChangeTrackingStrategy> changeTrackingStrategy;
139private static void CreateStrategies<TEntity>(out Func<object, IPropertyAccessorStrategy> createPropertyAccessorStrategy,
140out Func<object, IChangeTrackingStrategy> createChangeTrackingStrategy,
141out Func<object, IEntityKeyStrategy> createKeyStrategy)
313internal static Func<object, IPropertyAccessorStrategy> GetPocoPropertyAccessorStrategyFunc()
322internal static Func<object, IPropertyAccessorStrategy> GetNullPropertyAccessorStrategyFunc()
331internal static Func<object, IChangeTrackingStrategy> GetEntityWithChangeTrackerStrategyFunc()
340internal static Func<object, IChangeTrackingStrategy> GetSnapshotChangeTrackingStrategyFunc()
349internal static Func<object, IEntityKeyStrategy> GetEntityWithKeyStrategyStrategyFunc()
358internal static Func<object, IEntityKeyStrategy> GetPocoEntityKeyStrategyFunc()
System\Data\SqlClient\SqlTypesAssembly.cs (21)
33internal static Expression<Func<TArg, TResult>> Lambda<TArg, TResult>(string argumentName, Func<ParameterExpression, Expression> createLambdaBodyGivenParameter)
37return Expression.Lambda<Func<TArg, TResult>>(lambdaBody, argParam);
248private readonly Func<object, bool> sqlBooleanToBoolean;
254private readonly Func<object, bool?> sqlBooleanToNullableBoolean;
265private readonly Func<byte[], object> sqlBytesFromByteArray;
271private readonly Func<object, byte[]> sqlBytesToByteArray;
282private readonly Func<string, object> sqlStringFromString;
288private readonly Func<string, object> sqlCharsFromString;
294private readonly Func<object, string> sqlCharsToString;
304private readonly Func<object, string> sqlStringToString;
314private readonly Func<object, double> sqlDoubleToDouble;
320private readonly Func<object, double?> sqlDoubleToNullableDouble;
330private readonly Func<object, int> sqlInt32ToInt;
336private readonly Func<object, int?> sqlInt32ToNullableInt;
346private readonly Func<System.Xml.XmlReader, object> sqlXmlFromXmlReader;
353private readonly Func<object, string> sqlXmlToString;
364private readonly Func<object, bool> isSqlGeographyNull;
375private readonly Func<object, bool> isSqlGeometryNull;
386private readonly Func<object, object> geographyAsTextZMAsSqlChars;
399private readonly Func<object, object> geometryAsTextZMAsSqlChars;