system\Collections\Concurrent\ConcurrentDictionary.cs (6)
210public ConcurrentDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection) : this(collection, EqualityComparer<TKey>.Default) { }
240public ConcurrentDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey> comparer)
270int concurrencyLevel, IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey> comparer)
279private void InitializeFromCollection(IEnumerable<KeyValuePair<TKey, TValue>> collection)
1361IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys
1384IEnumerable<TValue> IReadOnlyDictionary<TKey, TValue>.Values
system\collections\concurrent\PartitionerStatic.cs (15)
141/// Creates an orderable partitioner from a <see cref="System.Collections.Generic.IEnumerable{TSource}"/> instance.
152public static OrderablePartitioner<TSource> Create<TSource>(IEnumerable<TSource> source)
158/// Creates an orderable partitioner from a <see cref="System.Collections.Generic.IEnumerable{TSource}"/> instance.
174public static OrderablePartitioner<TSource> Create<TSource>(IEnumerable<TSource> source, EnumerablePartitionerOptions partitionerOptions)
225private static IEnumerable<Tuple<long, long>> CreateRanges(long fromInclusive, long toExclusive, long rangeSize)
282private static IEnumerable<Tuple<int, int>> CreateRanges(int fromInclusive, int toExclusive, int rangeSize)
504IEnumerable<TSource> m_source;
508internal DynamicPartitionerForIEnumerable(IEnumerable<TSource> source, EnumerablePartitionerOptions partitionerOptions)
530IEnumerable<KeyValuePair<long, TSource>> partitionEnumerable = new InternalPartitionEnumerable(m_source.GetEnumerator(), m_useSingleChunking, true);
542override public IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions()
1049protected abstract IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions_Factory(TCollection data);
1065IEnumerable<KeyValuePair<long, TSource>> partitionEnumerable = GetOrderableDynamicPartitions_Factory(m_data);
1077override public IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions()
1214override protected IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions_Factory(IList<TSource> m_data)
1300override protected IEnumerable<KeyValuePair<long, TSource>> GetOrderableDynamicPartitions_Factory(TSource[] m_data)
system\io\directory.cs (23)
831IEnumerable<String> enble = FileSystemEnumerableFactory.CreateFileNameIterator(
840public static IEnumerable<String> EnumerateDirectories(String path)
851public static IEnumerable<String> EnumerateDirectories(String path, String searchPattern)
864public static IEnumerable<String> EnumerateDirectories(String path, String searchPattern, SearchOption searchOption)
879private static IEnumerable<String> InternalEnumerateDirectories(String path, String searchPattern, SearchOption searchOption)
890public static IEnumerable<String> EnumerateFiles(String path)
894Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
902public static IEnumerable<String> EnumerateFiles(String path, String searchPattern)
908Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
916public static IEnumerable<String> EnumerateFiles(String path, String searchPattern, SearchOption searchOption)
924Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
932private static IEnumerable<String> InternalEnumerateFiles(String path, String searchPattern, SearchOption searchOption)
937Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
944public static IEnumerable<String> EnumerateFileSystemEntries(String path)
948Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
956public static IEnumerable<String> EnumerateFileSystemEntries(String path, String searchPattern)
962Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
970public static IEnumerable<String> EnumerateFileSystemEntries(String path, String searchPattern, SearchOption searchOption)
978Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
986private static IEnumerable<String> InternalEnumerateFileSystemEntries(String path, String searchPattern, SearchOption searchOption)
991Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
996private static IEnumerable<String> EnumerateFileSystemNames(String path, String searchPattern, SearchOption searchOption,
1002Contract.Ensures(Contract.Result<IEnumerable<String>>() != null);
system\io\directoryinfo.cs (15)
365IEnumerable<FileInfo> enble = FileSystemEnumerableFactory.CreateFileInfoIterator(FullPath, OriginalPath, searchPattern, searchOption);
423IEnumerable<FileSystemInfo> enble = FileSystemEnumerableFactory.CreateFileSystemInfoIterator(FullPath, OriginalPath, searchPattern, searchOption);
477IEnumerable<DirectoryInfo> enble = FileSystemEnumerableFactory.CreateDirectoryInfoIterator(FullPath, OriginalPath, searchPattern, searchOption);
484public IEnumerable<DirectoryInfo> EnumerateDirectories()
491public IEnumerable<DirectoryInfo> EnumerateDirectories(String searchPattern)
502public IEnumerable<DirectoryInfo> EnumerateDirectories(String searchPattern, SearchOption searchOption)
515private IEnumerable<DirectoryInfo> InternalEnumerateDirectories(String searchPattern, SearchOption searchOption)
525public IEnumerable<FileInfo> EnumerateFiles()
532public IEnumerable<FileInfo> EnumerateFiles(String searchPattern)
543public IEnumerable<FileInfo> EnumerateFiles(String searchPattern, SearchOption searchOption)
556private IEnumerable<FileInfo> InternalEnumerateFiles(String searchPattern, SearchOption searchOption)
566public IEnumerable<FileSystemInfo> EnumerateFileSystemInfos()
573public IEnumerable<FileSystemInfo> EnumerateFileSystemInfos(String searchPattern)
584public IEnumerable<FileSystemInfo> EnumerateFileSystemInfos(String searchPattern, SearchOption searchOption)
597private IEnumerable<FileSystemInfo> InternalEnumerateFileSystemInfos(String searchPattern, SearchOption searchOption)
system\io\filesystemenumerable.cs (4)
40internal static IEnumerable<String> CreateFileNameIterator(String path, String originalUserPath, String searchPattern,
51internal static IEnumerable<FileInfo> CreateFileInfoIterator(String path, String originalUserPath, String searchPattern, SearchOption searchOption)
61internal static IEnumerable<DirectoryInfo> CreateDirectoryInfoIterator(String path, String originalUserPath, String searchPattern, SearchOption searchOption)
72internal static IEnumerable<FileSystemInfo> CreateFileSystemInfoIterator(String path, String originalUserPath, String searchPattern, SearchOption searchOption)
system\reflection\CustomAttributeExtensions.cs (24)
62public static IEnumerable<Attribute> GetCustomAttributes(this Assembly element)
66public static IEnumerable<Attribute> GetCustomAttributes(this Module element)
70public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element)
74public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element)
79public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element, bool inherit)
83public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element, bool inherit)
90public static IEnumerable<Attribute> GetCustomAttributes(this Assembly element, Type attributeType)
94public static IEnumerable<Attribute> GetCustomAttributes(this Module element, Type attributeType)
98public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element, Type attributeType)
102public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element, Type attributeType)
107public static IEnumerable<T> GetCustomAttributes<T>(this Assembly element) where T : Attribute
109return (IEnumerable<T>)GetCustomAttributes(element, typeof(T));
111public static IEnumerable<T> GetCustomAttributes<T>(this Module element) where T : Attribute
113return (IEnumerable<T>)GetCustomAttributes(element, typeof(T));
115public static IEnumerable<T> GetCustomAttributes<T>(this MemberInfo element) where T : Attribute
117return (IEnumerable<T>)GetCustomAttributes(element, typeof(T));
119public static IEnumerable<T> GetCustomAttributes<T>(this ParameterInfo element) where T : Attribute
121return (IEnumerable<T>)GetCustomAttributes(element, typeof(T));
124public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element, Type attributeType, bool inherit)
128public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element, Type attributeType, bool inherit)
133public static IEnumerable<T> GetCustomAttributes<T>(this MemberInfo element, bool inherit) where T : Attribute
135return (IEnumerable<T>)GetCustomAttributes(element, typeof(T), inherit);
137public static IEnumerable<T> GetCustomAttributes<T>(this ParameterInfo element, bool inherit) where T : Attribute
139return (IEnumerable<T>)GetCustomAttributes(element, typeof(T), inherit);
system\security\claims\ClaimsIdentity.cs (23)
90Collection<IEnumerable<Claim>> m_externalClaims = new Collection<IEnumerable<Claim>>();
142: this(identity, (IEnumerable<Claim>)null)
156public ClaimsIdentity(IEnumerable<Claim> claims)
167: this((IIdentity) null, (IEnumerable<Claim>)null, authenticationType, (string)null, (string)null)
182public ClaimsIdentity(IEnumerable<Claim> claims, string authenticationType)
193public ClaimsIdentity(IIdentity identity, IEnumerable<Claim> claims)
206: this((IIdentity) null, (IEnumerable<Claim>)null, authenticationType, nameType, roleType)
218public ClaimsIdentity(IEnumerable<Claim> claims, string authenticationType, string nameType, string roleType)
232public ClaimsIdentity(IIdentity identity, IEnumerable<Claim> claims, string authenticationType, string nameType, string roleType)
248internal ClaimsIdentity(IIdentity identity, IEnumerable<Claim> claims, string authenticationType, string nameType, string roleType, bool checkAuthType)
495/// Gets the claims as <see cref="IEnumerable{Claim}"/>, associated with this <see cref="ClaimsIdentity"/>.
498public virtual IEnumerable<Claim> Claims
539internal Collection<IEnumerable<Claim>> ExternalClaims
661public virtual void AddClaims(IEnumerable<Claim> claims)
720void SafeAddClaims(IEnumerable<Claim> claims)
756/// Retrieves a <see cref="IEnumerable{Claim}"/> where each claim is matched by <param name="match"/>.
759/// <returns>A <see cref="IEnumerable{Claim}"/> of matched claims.</returns>
760public virtual IEnumerable<Claim> FindAll(Predicate<Claim> match)
783/// Retrieves a <see cref="IEnumerable{Claim}"/> where each Claim.Type equals <paramref name="type"/>.
786/// <returns>A <see cref="IEnumerable{Claim}"/> of matched claims.</returns>
788public virtual IEnumerable<Claim> FindAll(string type)
967m_externalClaims = new Collection<IEnumerable<Claim>>();
system\threading\Tasks\Parallel.cs (14)
1663public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, Action<TSource> body)
1708public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Action<TSource> body)
1748public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, Action<TSource, ParallelLoopState> body)
1795public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Action<TSource, ParallelLoopState> body)
1835public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, Action<TSource, ParallelLoopState, long> body)
1882public static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Action<TSource, ParallelLoopState, long> body)
1942public static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, Func<TLocal> localInit,
2018public static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source,
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,
2216IEnumerable<TSource> source,
3262IEnumerable<TSource> partitionerSource = null;
3263IEnumerable<KeyValuePair<long, TSource>> orderablePartitionerSource = null;
3553internal static void ThrowIfReducableToSingleOCE(IEnumerable<Exception> excCollection, CancellationToken ct)
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (6)
127internal virtual IEnumerable<ContourSegment> GetContourSegments(StrokeNodeData node, Quad quad)
172internal virtual IEnumerable<ContourSegment> GetNonBezierContourSegments(StrokeNodeData beginNode, StrokeNodeData endNode)
444StrokeNodeData beginNode, StrokeNodeData endNode, Quad quad, IEnumerable<ContourSegment> hitContour)
570StrokeNodeData beginNode, StrokeNodeData endNode, Quad quad, IEnumerable<ContourSegment> hitContour)
944IEnumerable<ContourSegment> hitContour, StrokeNodeData beginNode, StrokeNodeData endNode)
1033IEnumerable<ContourSegment> hitContour, Quad quad, StrokeNodeData beginNode, StrokeNodeData endNode)
System\Activities\Activity.cs (11)
1715IEnumerable<KeyValuePair<string, Argument>> argumentEnumerable = propertyValue as IEnumerable<KeyValuePair<string, Argument>>;
1721IEnumerable<KeyValuePair<string, InArgument>> inArgumentEnumerable = propertyValue as IEnumerable<KeyValuePair<string, InArgument>>;
1727IEnumerable<KeyValuePair<string, OutArgument>> outArgumentEnumerable = propertyValue as IEnumerable<KeyValuePair<string, OutArgument>>;
1733IEnumerable<KeyValuePair<string, InOutArgument>> inOutArgumentEnumerable = propertyValue as IEnumerable<KeyValuePair<string, InOutArgument>>;
1742protected static IList<RuntimeArgument> GetRuntimeArguments<T>(IEnumerable<KeyValuePair<string, T>> argumentDictionary, string propertyName) where T : Argument
1774IEnumerable<KeyValuePair<string, T>> argumentDictionary = propertyValue as IEnumerable<KeyValuePair<string, T>>;
System\Activities\DynamicUpdate\DynamicUpdateServices.cs (5)
95public static DynamicUpdateMap CreateUpdateMap(Activity updatedWorkflowDefinition, IEnumerable<Activity> disallowUpdateInsideActivities)
102public static DynamicUpdateMap CreateUpdateMap(Activity updatedWorkflowDefinition, IEnumerable<Activity> disallowUpdateInsideActivities, out IList<ActivityBlockingUpdate> activitiesBlockingUpdate)
134public static DynamicUpdateMap CreateUpdateMap(ActivityBuilder updatedActivityDefinition, IEnumerable<Activity> disallowUpdateInsideActivities)
141public static DynamicUpdateMap CreateUpdateMap(ActivityBuilder updatedActivityDefinition, IEnumerable<Activity> disallowUpdateInsideActivities, out IList<ActivityBlockingUpdate> activitiesBlockingUpdate)
171private static DynamicUpdateMap InternalTryCreateUpdateMap(Activity updatedDefinition, Activity originalDefinition, IEnumerable<Activity> disallowUpdateInsideActivities, bool forImplementation, out IList<ActivityBlockingUpdate> activitiesBlockingUpdate)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (7)
41internal IEnumerable<Type> AttributedTypes
67private static void AddAttributes(AttributeList list, IEnumerable<object> attributes)
84internal void AddCustomAttributes(Type type, IEnumerable<object> attributes)
93internal void AddCustomAttributes(Type ownerType, MemberDescriptor descriptor, IEnumerable<object> attributes)
102internal void AddCustomAttributes(Type ownerType, MemberInfo member, IEnumerable<object> attributes)
111internal void AddCustomAttributes(Type ownerType, DependencyProperty dp, IEnumerable<object> attributes)
120internal void AddCustomAttributes(Type ownerType, string memberName, IEnumerable<object> attributes)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (21)
80internal static DataObject DoDragMoveImpl(IEnumerable<WorkflowViewElement> draggedViewElements, Point referencePoint)
284IEnumerable<ModelItem> modelItems = draggedDataObject.GetData(ModelItemsDataFormat) as IEnumerable<ModelItem>;
322public static IEnumerable<object> GetDroppedObjects(DependencyObject dropTarget, DragEventArgs e, EditingContext context)
327IEnumerable<ModelItem> droppedModelItems = e.Data.GetData(ModelItemsDataFormat) as IEnumerable<ModelItem>;
386IEnumerable<object> droppedObjects = GetDroppedObjects(dropTarget, e, context);
520IEnumerable<ModelItem> draggedModelItems = GetDraggedModelItems(e);
528public static IEnumerable<ModelItem> GetDraggedModelItems(DragEventArgs e)
530IEnumerable<ModelItem> draggedModelItems = e.Data.GetData(ModelItemsDataFormat) as IEnumerable<ModelItem>;
590internal static List<object> SortSelectedObjects(IEnumerable<object> selectedObjects)
688internal static void SetDragDropMovedViewElements(DragEventArgs e, IEnumerable<WorkflowViewElement> movedViewElements)
710internal static IEnumerable<WorkflowViewElement> GetDragDropMovedViewElements(DataObject data)
719return (IEnumerable<WorkflowViewElement>)data.GetData(MovedViewElementsFormat);
729internal static Dictionary<WorkflowViewElement, Point> GetViewElementRelativeLocations(IEnumerable<WorkflowViewElement> viewElements)
773IEnumerable<ModelItem> draggedModelItems = e.Data.GetData(ModelItemsDataFormat) as IEnumerable<ModelItem>;
797internal static IEnumerable<ModelItem> GetModelItemsToDrag(IEnumerable<ModelItem> modelItems)
844public ViewElementDragShadow(UIElement owner, IEnumerable<WorkflowViewElement> viewElements, Point offset, double scaleFactor)
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (8)
23private static Dictionary<Type, Func<Activity, IEnumerable<ArgumentAccessor>>> argumentAccessorsGenerators = new Dictionary<Type, Func<Activity, IEnumerable<ArgumentAccessor>>>();
30public static void RegisterAccessorsGenerator(Type activityType, Func<Activity, IEnumerable<ArgumentAccessor>> argumentAccessorsGenerator)
51internal static bool TryGetArgumentAccessorsGenerator(Type activityType, out Func<Activity, IEnumerable<ArgumentAccessor>> argumentAccessorsGenerator)
130internal static List<ExpressionReplacement> ComputeExpressionReplacements(IEnumerable<ActivityWithResult> expressions, EditingContext context, ArgumentAccessorWrapperCache argumentAccessorWrapperCache)
217IEnumerable<ArgumentAccessorWrapper> argumentAccessorWrappers = argumentAccessorWrapperCache.GetArgumentAccessorWrappers(parentActivity);
287Func<Activity, IEnumerable<ArgumentAccessor>> argumentAccessorsGenerator;
290IEnumerable<ArgumentAccessor> argumentAccessors = argumentAccessorsGenerator(activity);
Microsoft\Scripting\Ast\BlockExpression.cs (13)
100public BlockExpression Update(IEnumerable<ParameterExpression> variables, IEnumerable<Expression> expressions) {
699public static BlockExpression Block(IEnumerable<Expression> expressions) {
711return Block(type, (IEnumerable<Expression>)expressions);
720public static BlockExpression Block(Type type, IEnumerable<Expression> expressions) {
730public static BlockExpression Block(IEnumerable<ParameterExpression> variables, params Expression[] expressions) {
731return Block(variables, (IEnumerable<Expression>)expressions);
741public static BlockExpression Block(Type type, IEnumerable<ParameterExpression> variables, params Expression[] expressions) {
742return Block(type, variables, (IEnumerable<Expression>)expressions);
751public static BlockExpression Block(IEnumerable<ParameterExpression> variables, IEnumerable<Expression> expressions) {
767public static BlockExpression Block(Type type, IEnumerable<ParameterExpression> variables, IEnumerable<Expression> expressions) {
Microsoft\Scripting\Ast\DynamicExpression.cs (7)
160public DynamicExpression Update(IEnumerable<Expression> arguments) {
218public static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, IEnumerable<Expression> arguments) {
321public static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, IEnumerable<Expression> arguments) {
687return MakeDynamic(delegateType, binder, (IEnumerable<Expression>)arguments);
703public static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, IEnumerable<Expression> arguments) {
870return Dynamic(binder, returnType, (IEnumerable<Expression>)arguments);
1063public static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, IEnumerable<Expression> arguments) {
Microsoft\Scripting\Ast\IndexExpression.cs (9)
110public IndexExpression Update(Expression @object, IEnumerable<Expression> arguments) {
151public static IndexExpression MakeIndex(Expression instance, PropertyInfo indexer, IEnumerable<Expression> arguments) {
170return ArrayAccess(array, (IEnumerable<Expression>)indexes);
177/// <param name="indexes">An <see cref="IEnumerable{Expression}"/> containing expressions used to index the array.</param>
181public static IndexExpression ArrayAccess(Expression array, IEnumerable<Expression> indexes) {
275private static int FindBestProperty(IEnumerable<PropertyInfo> properties, Expression[] args, out PropertyInfo property) {
333return Property(instance, indexer, (IEnumerable<Expression>)arguments);
341/// <param name="arguments">An <see cref="IEnumerable{T}"/> of <see cref="Expression"/> objects that are used to index the property.</param>
343public static IndexExpression Property(Expression instance, PropertyInfo indexer, IEnumerable<Expression> arguments) {
Microsoft\Scripting\Ast\LambdaExpression.cs (29)
226public Expression<TDelegate> Update(Expression body, IEnumerable<ParameterExpression> parameters) {
290return Lambda<TDelegate>(body, false, (IEnumerable<ParameterExpression>)parameters);
302return Lambda<TDelegate>(body, tailCall, (IEnumerable<ParameterExpression>)parameters);
310/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
312public static Expression<TDelegate> Lambda<TDelegate>(Expression body, IEnumerable<ParameterExpression> parameters) {
322/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
324public static Expression<TDelegate> Lambda<TDelegate>(Expression body, bool tailCall, IEnumerable<ParameterExpression> parameters) {
333/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
336public static Expression<TDelegate> Lambda<TDelegate>(Expression body, String name, IEnumerable<ParameterExpression> parameters) {
346/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
349public static Expression<TDelegate> Lambda<TDelegate>(Expression body, String name, bool tailCall, IEnumerable<ParameterExpression> parameters) {
363return Lambda(body, false, (IEnumerable<ParameterExpression>)parameters);
374return Lambda(body, tailCall, (IEnumerable<ParameterExpression>)parameters);
381/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
383public static LambdaExpression Lambda(Expression body, IEnumerable<ParameterExpression> parameters) {
392/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
394public static LambdaExpression Lambda(Expression body, bool tailCall, IEnumerable<ParameterExpression> parameters) {
425/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
428public static LambdaExpression Lambda(Type delegateType, Expression body, IEnumerable<ParameterExpression> parameters) {
437/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
440public static LambdaExpression Lambda(Type delegateType, Expression body, bool tailCall, IEnumerable<ParameterExpression> parameters) {
448/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
451public static LambdaExpression Lambda(Expression body, string name, IEnumerable<ParameterExpression> parameters) {
461/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
463public static LambdaExpression Lambda(Expression body, string name, bool tailCall, IEnumerable<ParameterExpression> parameters) {
493/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
497public static LambdaExpression Lambda(Type delegateType, Expression body, string name, IEnumerable<ParameterExpression> parameters) {
511/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="P:Parameters"/> collection. </param>
513public static LambdaExpression Lambda(Type delegateType, Expression body, string name, bool tailCall, IEnumerable<ParameterExpression> parameters) {
Microsoft\Scripting\Ast\ListInitExpression.cs (12)
117public ListInitExpression Update(NewExpression newExpression, IEnumerable<ElementInit> initializers) {
136return ListInit(newExpression, initializers as IEnumerable<Expression>);
143/// <param name="initializers">An <see cref="IEnumerable{T}"/> that contains <see cref="M:ElementInit"/> objects to use to populate the <see cref="ListInitExpression.Initializers"/> collection.</param>
145public static ListInitExpression ListInit(NewExpression newExpression, IEnumerable<Expression> initializers) {
167return ListInit(newExpression, initializers as IEnumerable<Expression>);
171return ListInit(newExpression, addMethod, initializers as IEnumerable<Expression>);
179/// <param name="initializers">An <see cref="IEnumerable{T}"/> that contains <see cref="Expression"/> objects to use to populate the Initializers collection.</param>
181public static ListInitExpression ListInit(NewExpression newExpression, MethodInfo addMethod, IEnumerable<Expression> initializers) {
213return ListInit(newExpression, (IEnumerable<ElementInit>)initializers);
220/// <param name="initializers">An <see cref="IEnumerable{T}"/> that contains <see cref="M:ElementInit"/> objects to use to populate the <see cref="ListInitExpression.Initializers"/> collection.</param>
221/// <returns>An <see cref="IEnumerable{T}"/> that contains <see cref="M:ElementInit"/> objects to use to populate the <see cref="ListInitExpression.Initializers"/> collection.</returns>
226public static ListInitExpression ListInit(NewExpression newExpression, IEnumerable<ElementInit> initializers) {
Microsoft\Scripting\Ast\MethodCallExpression.cs (7)
97public MethodCallExpression Update(Expression @object, IEnumerable<Expression> arguments) {
658public static MethodCallExpression Call(MethodInfo method, IEnumerable<Expression> arguments) {
680return Call(instance, method, (IEnumerable<Expression>)arguments);
792public static MethodCallExpression Call(Expression instance, MethodInfo method, IEnumerable<Expression> arguments) {
953private static int FindBestMethod(IEnumerable<MethodInfo> methods, Type[] typeArgs, Expression[] args, out MethodInfo method) {
1014return ArrayIndex(array, (IEnumerable<Expression>)indexes);
1025public static MethodCallExpression ArrayIndex(Expression array, IEnumerable<Expression> indexes) {
Microsoft\Scripting\Ast\SwitchExpression.cs (7)
124public SwitchExpression Update(Expression switchValue, IEnumerable<SwitchCase> cases, Expression defaultBody) {
140return Switch(switchValue, null, null, (IEnumerable<SwitchCase>)cases);
151return Switch(switchValue, defaultBody, null, (IEnumerable<SwitchCase>)cases);
163return Switch(switchValue, defaultBody, comparison, (IEnumerable<SwitchCase>)cases);
176return Switch(type, switchValue, defaultBody, comparison, (IEnumerable<SwitchCase>)cases);
187public static SwitchExpression Switch(Expression switchValue, Expression defaultBody, MethodInfo comparison, IEnumerable<SwitchCase> cases) {
200public static SwitchExpression Switch(Type type, Expression switchValue, Expression defaultBody, MethodInfo comparison, IEnumerable<SwitchCase> cases) {
System\Linq\Enumerable.cs (339)
15public static IEnumerable<TSource> Where<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
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) {
38public static IEnumerable<TResult> Select<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector) {
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) {
102public abstract IEnumerable<TResult> Select<TResult>(Func<TSource, TResult> selector);
104public abstract IEnumerable<TSource> Where(Func<TSource, bool> predicate);
121IEnumerable<TSource> source;
125public WhereEnumerableIterator(IEnumerable<TSource> source, Func<TSource, bool> predicate) {
160public override IEnumerable<TResult> Select<TResult>(Func<TSource, TResult> selector) {
164public override IEnumerable<TSource> Where(Func<TSource, bool> predicate) {
199public override IEnumerable<TResult> Select<TResult>(Func<TSource, TResult> selector) {
203public override IEnumerable<TSource> Where(Func<TSource, bool> predicate) {
243public override IEnumerable<TResult> Select<TResult>(Func<TSource, TResult> selector) {
247public override IEnumerable<TSource> Where(Func<TSource, bool> predicate) {
253/// An iterator that maps each item of an <see cref="IEnumerable{TSource}"/>.
259private readonly IEnumerable<TSource> _source;
263public SelectEnumerableIterator(IEnumerable<TSource> source, Func<TSource, TResult> selector)
307public override IEnumerable<TResult2> Select<TResult2>(Func<TResult, TResult2> selector)
312public override IEnumerable<TResult> Where(Func<TResult, bool> predicate)
368IEnumerable<TSource> source;
373public WhereSelectEnumerableIterator(IEnumerable<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector) {
409public override IEnumerable<TResult2> Select<TResult2>(Func<TResult, TResult2> selector) {
413public override IEnumerable<TResult> Where(Func<TResult, bool> predicate) {
450public override IEnumerable<TResult2> Select<TResult2>(Func<TResult, TResult2> selector) {
454public override IEnumerable<TResult> Where(Func<TResult, bool> predicate) {
496public override IEnumerable<TResult2> Select<TResult2>(Func<TResult, TResult2> selector) {
500public override IEnumerable<TResult> Where(Func<TResult, bool> predicate) {
529public static IEnumerable<TResult> SelectMany<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, IEnumerable<TResult>> selector) {
535static IEnumerable<TResult> SelectManyIterator<TSource, TResult>(IEnumerable<TSource> source, Func<TSource, IEnumerable<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) {
591public static IEnumerable<TSource> Take<TSource>(this IEnumerable<TSource> source, int count) {
596static IEnumerable<TSource> TakeIterator<TSource>(IEnumerable<TSource> source, int count) {
605public static IEnumerable<TSource> TakeWhile<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
611static IEnumerable<TSource> TakeWhileIterator<TSource>(IEnumerable<TSource> source, Func<TSource, bool> predicate) {
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) {
633public static IEnumerable<TSource> Skip<TSource>(this IEnumerable<TSource> source, int count) {
638static IEnumerable<TSource> SkipIterator<TSource>(IEnumerable<TSource> source, int count) {
647public static IEnumerable<TSource> SkipWhile<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
653static IEnumerable<TSource> SkipWhileIterator<TSource>(IEnumerable<TSource> source, Func<TSource, 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) {
732public static IOrderedEnumerable<TSource> OrderBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) {
736public static IOrderedEnumerable<TSource> OrderBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer) {
740public static IOrderedEnumerable<TSource> OrderByDescending<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) {
744public static IOrderedEnumerable<TSource> OrderByDescending<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer) {
768public static IEnumerable<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) {
772public static IEnumerable<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer) {
776public static IEnumerable<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector) {
780public static IEnumerable<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, 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){
800public static IEnumerable<TSource> Concat<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second) {
806static IEnumerable<TSource> ConcatIterator<TSource>(IEnumerable<TSource> first, IEnumerable<TSource> second) {
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) {
826public static IEnumerable<TSource> Distinct<TSource>(this IEnumerable<TSource> source) {
831public static IEnumerable<TSource> Distinct<TSource>(this IEnumerable<TSource> source, IEqualityComparer<TSource> comparer) {
836static IEnumerable<TSource> DistinctIterator<TSource>(IEnumerable<TSource> source, IEqualityComparer<TSource> comparer) {
842public static IEnumerable<TSource> Union<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second) {
848public static IEnumerable<TSource> Union<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
855static IEnumerable<TSource> UnionIterator<TSource>(IEnumerable<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
864public static IEnumerable<TSource> Intersect<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second) {
870public static IEnumerable<TSource> Intersect<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
877static IEnumerable<TSource> IntersectIterator<TSource>(IEnumerable<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
885public static IEnumerable<TSource> Except<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second)
892public static IEnumerable<TSource> Except<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
899static IEnumerable<TSource> ExceptIterator<TSource>(IEnumerable<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer) {
906public static IEnumerable<TSource> Reverse<TSource>(this IEnumerable<TSource> source) {
911static IEnumerable<TSource> ReverseIterator<TSource>(IEnumerable<TSource> source) {
916public static bool SequenceEqual<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second) {
920public static bool SequenceEqual<TSource>(this IEnumerable<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
937public static IEnumerable<TSource> AsEnumerable<TSource>(this IEnumerable<TSource> source)
942public static TSource[] ToArray<TSource>(this IEnumerable<TSource> source) {
947public static List<TSource> ToList<TSource>(this IEnumerable<TSource> source) {
952public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) {
956public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer) {
960public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector) {
964public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer) {
973public static ILookup<TKey, TSource> ToLookup<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) {
977public static ILookup<TKey, TSource> ToLookup<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer) {
981public static ILookup<TKey, TElement> ToLookup<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector) {
985public static ILookup<TKey, TElement> ToLookup<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer) {
989public static HashSet<TSource> ToHashSet<TSource>(this IEnumerable<TSource> source) {
993public static HashSet<TSource> ToHashSet<TSource>(this IEnumerable<TSource> source, IEqualityComparer<TSource> comparer) {
998public static IEnumerable<TSource> DefaultIfEmpty<TSource>(this IEnumerable<TSource> source) {
1002public static IEnumerable<TSource> DefaultIfEmpty<TSource>(this IEnumerable<TSource> source, TSource defaultValue) {
1007static IEnumerable<TSource> DefaultIfEmptyIterator<TSource>(IEnumerable<TSource> source, TSource defaultValue) {
1020public static IEnumerable<TResult> OfType<TResult>(this IEnumerable source) {
1025static IEnumerable<TResult> OfTypeIterator<TResult>(IEnumerable source) {
1031public static IEnumerable<TResult> Cast<TResult>(this IEnumerable source) {
1032IEnumerable<TResult> typedSource = source as IEnumerable<TResult>;
1038static IEnumerable<TResult> CastIterator<TResult>(IEnumerable source) {
1042public static TSource First<TSource>(this IEnumerable<TSource> source) {
1056public static TSource First<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
1065public static TSource FirstOrDefault<TSource>(this IEnumerable<TSource> source) {
1079public static TSource FirstOrDefault<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
1088public static TSource Last<TSource>(this IEnumerable<TSource> source) {
1109public static TSource Last<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
1124public static TSource LastOrDefault<TSource>(this IEnumerable<TSource> source) {
1145public static TSource LastOrDefault<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
1157public static TSource Single<TSource>(this IEnumerable<TSource> source) {
1176public static TSource Single<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
1194public static TSource SingleOrDefault<TSource>(this IEnumerable<TSource> source) {
1213public static TSource SingleOrDefault<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
1231public static TSource ElementAt<TSource>(this IEnumerable<TSource> source, int index) {
1245public static TSource ElementAtOrDefault<TSource>(this IEnumerable<TSource> source, int index) {
1265public static IEnumerable<int> Range(int start, int count) {
1271static IEnumerable<int> RangeIterator(int start, int count) {
1275public static IEnumerable<TResult> Repeat<TResult>(TResult element, int count) {
1280static IEnumerable<TResult> RepeatIterator<TResult>(TResult element, int count) {
1284public static IEnumerable<TResult> Empty<TResult>() {
1288public static bool Any<TSource>(this IEnumerable<TSource> source) {
1296public static bool Any<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
1305public static bool All<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
1314public static int Count<TSource>(this IEnumerable<TSource> source) {
1329public static int Count<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
1341public static long LongCount<TSource>(this IEnumerable<TSource> source) {
1352public static long LongCount<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) {
1364public static bool Contains<TSource>(this IEnumerable<TSource> source, TSource value) {
1370public static bool Contains<TSource>(this IEnumerable<TSource> source, TSource value, IEqualityComparer<TSource> comparer)
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) {
1408public static int Sum(this IEnumerable<int> source) {
1417public static int? Sum(this IEnumerable<int?> source) {
1428public static long Sum(this IEnumerable<long> source) {
1437public static long? Sum(this IEnumerable<long?> source) {
1448public static float Sum(this IEnumerable<float> source) {
1455public static float? Sum(this IEnumerable<float?> source) {
1464public static double Sum(this IEnumerable<double> source) {
1471public static double? Sum(this IEnumerable<double?> source) {
1480public static decimal Sum(this IEnumerable<decimal> source) {
1487public static decimal? Sum(this IEnumerable<decimal?> source) {
1496public static int Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, int> selector) {
1500public static int? Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, int?> selector) {
1504public static long Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, long> selector) {
1508public static long? Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, long?> selector) {
1512public static float Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, float> selector) {
1516public static float? Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, float?> selector) {
1520public static double Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, double> selector) {
1524public static double? Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, double?> selector) {
1528public static decimal Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, decimal> selector) {
1532public static decimal? Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, decimal?> selector) {
1536public static int Min(this IEnumerable<int> source) {
1553public static int? Min(this IEnumerable<int?> source) {
1563public static long Min(this IEnumerable<long> source) {
1580public static long? Min(this IEnumerable<long?> source) {
1589public static float Min(this IEnumerable<float> source) {
1612public static float? Min(this IEnumerable<float?> source) {
1622public static double Min(this IEnumerable<double> source) {
1639public static double? Min(this IEnumerable<double?> source) {
1649public static decimal Min(this IEnumerable<decimal> source) {
1666public static decimal? Min(this IEnumerable<decimal?> source) {
1675public static TSource Min<TSource>(this IEnumerable<TSource> source) {
1703public static int Min<TSource>(this IEnumerable<TSource> source, Func<TSource, int> selector) {
1707public static int? Min<TSource>(this IEnumerable<TSource> source, Func<TSource, int?> selector) {
1711public static long Min<TSource>(this IEnumerable<TSource> source, Func<TSource, long> selector) {
1715public static long? Min<TSource>(this IEnumerable<TSource> source, Func<TSource, long?> selector) {
1719public static float Min<TSource>(this IEnumerable<TSource> source, Func<TSource, float> selector) {
1723public static float? Min<TSource>(this IEnumerable<TSource> source, Func<TSource, float?> selector) {
1727public static double Min<TSource>(this IEnumerable<TSource> source, Func<TSource, double> selector) {
1731public static double? Min<TSource>(this IEnumerable<TSource> source, Func<TSource, double?> selector) {
1735public static decimal Min<TSource>(this IEnumerable<TSource> source, Func<TSource, decimal> selector) {
1739public static decimal? Min<TSource>(this IEnumerable<TSource> source, Func<TSource, decimal?> selector) {
1743public static TResult Min<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector) {
1747public static int Max(this IEnumerable<int> source) {
1764public static int? Max(this IEnumerable<int?> source) {
1773public static long Max(this IEnumerable<long> source) {
1790public static long? Max(this IEnumerable<long?> source) {
1799public static double Max(this IEnumerable<double> source) {
1816public static double? Max(this IEnumerable<double?> source) {
1826public static float Max(this IEnumerable<float> source) {
1843public static float? Max(this IEnumerable<float?> source) {
1853public static decimal Max(this IEnumerable<decimal> source) {
1870public static decimal? Max(this IEnumerable<decimal?> source) {
1879public static TSource Max<TSource>(this IEnumerable<TSource> source) {
1907public static int Max<TSource>(this IEnumerable<TSource> source, Func<TSource, int> selector) {
1911public static int? Max<TSource>(this IEnumerable<TSource> source, Func<TSource, int?> selector) {
1915public static long Max<TSource>(this IEnumerable<TSource> source, Func<TSource, long> selector) {
1919public static long? Max<TSource>(this IEnumerable<TSource> source, Func<TSource, long?> selector) {
1923public static float Max<TSource>(this IEnumerable<TSource> source, Func<TSource, float> selector) {
1927public static float? Max<TSource>(this IEnumerable<TSource> source, Func<TSource, float?> selector) {
1931public static double Max<TSource>(this IEnumerable<TSource> source, Func<TSource, double> selector) {
1935public static double? Max<TSource>(this IEnumerable<TSource> source, Func<TSource, double?> selector) {
1939public static decimal Max<TSource>(this IEnumerable<TSource> source, Func<TSource, decimal> selector) {
1943public static decimal? Max<TSource>(this IEnumerable<TSource> source, Func<TSource, decimal?> selector) {
1947public static TResult Max<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector) {
1951public static double Average(this IEnumerable<int> source) {
1965public static double? Average(this IEnumerable<int?> source) {
1981public static double Average(this IEnumerable<long> source) {
1995public static double? Average(this IEnumerable<long?> source) {
2011public static float Average(this IEnumerable<float> source) {
2025public static float? Average(this IEnumerable<float?> source) {
2041public static double Average(this IEnumerable<double> source) {
2055public static double? Average(this IEnumerable<double?> source) {
2071public static decimal Average(this IEnumerable<decimal> source) {
2085public static decimal? Average(this IEnumerable<decimal?> source) {
2101public static double Average<TSource>(this IEnumerable<TSource> source, Func<TSource, int> selector) {
2105public static double? Average<TSource>(this IEnumerable<TSource> source, Func<TSource, int?> selector) {
2109public static double Average<TSource>(this IEnumerable<TSource> source, Func<TSource, long> selector) {
2113public static double? Average<TSource>(this IEnumerable<TSource> source, Func<TSource, long?> selector) {
2117public static float Average<TSource>(this IEnumerable<TSource> source, Func<TSource, float> selector) {
2121public static float? Average<TSource>(this IEnumerable<TSource> source, Func<TSource, float?> selector) {
2125public static double Average<TSource>(this IEnumerable<TSource> source, Func<TSource, double> selector) {
2129public static double? Average<TSource>(this IEnumerable<TSource> source, Func<TSource, double?> selector) {
2133public static decimal Average<TSource>(this IEnumerable<TSource> source, Func<TSource, decimal> selector) {
2137public static decimal? Average<TSource>(this IEnumerable<TSource> source, Func<TSource, decimal?> selector) {
2175IEnumerable<TElement> this[TKey key] { get; }
2185internal static Lookup<TKey, TElement> Create<TSource>(IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer) {
2196internal static Lookup<TKey, TElement> CreateForJoin(IEnumerable<TElement> source, Func<TElement, TKey> keySelector, IEqualityComparer<TKey> comparer) {
2215public IEnumerable<TElement> this[TKey key] {
2237public IEnumerable<TResult> ApplyResultSelector<TResult>(Func<TKey, IEnumerable<TElement>, TResult> resultSelector){
2485IEnumerable<TSource> source;
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){
2515IEnumerable<TSource> source;
2520public GroupedEnumerable(IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer) {
2541internal IEnumerable<TElement> source;
2573internal OrderedEnumerable(IEnumerable<TElement> source, Func<TElement, TKey> keySelector, IComparer<TKey> comparer, bool descending) {
2669internal Buffer(IEnumerable<TElement> source) {
2713public SystemCore_EnumerableDebugView(IEnumerable<T> enumerable)
2749private IEnumerable<T> enumerable;
System\Linq\IQueryable.cs (28)
71public static IQueryable<TElement> AsQueryable<TElement>(this IEnumerable<TElement> source) {
84Type enumType = TypeHelper.FindGenericType(typeof(IEnumerable<>), source.GetType());
164public static IQueryable<TResult> SelectMany<TSource,TResult>(this IQueryable<TSource> source, Expression<Func<TSource, IEnumerable<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) {
220private static Expression GetSourceExpression<TSource>(IEnumerable<TSource> source) {
223return Expression.Constant(source, typeof(IEnumerable<TSource>));
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) {
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)
651public static IQueryable<TSource> Concat<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2) {
664public static IQueryable<TResult> Zip<TFirst, TSecond, TResult>(this IQueryable<TFirst> source1, IEnumerable<TSecond> source2, Expression<Func<TFirst, TSecond, TResult>> resultSelector) {
679public static IQueryable<TSource> Union<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2) {
692public static IQueryable<TSource> Union<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2, IEqualityComparer<TSource> comparer) {
709public static IQueryable<TSource> Intersect<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2) {
722public static IQueryable<TSource> Intersect<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2, IEqualityComparer<TSource> comparer) {
739public static IQueryable<TSource> Except<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2) {
752public static IQueryable<TSource> Except<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2, IEqualityComparer<TSource> comparer) {
992public static bool SequenceEqual<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2) {
1005public static bool SequenceEqual<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2, IEqualityComparer<TSource> comparer) {
System\Linq\Parallel\QueryOperators\Unary\SelectManyQueryOperator.cs (10)
39private readonly Func<TLeftInput, IEnumerable<TRightInput>> m_rightChildSelector; // To select a new child each iteration.
40private readonly Func<TLeftInput, int, IEnumerable<TRightInput>> m_indexedRightChildSelector; // To select a new child each iteration.
56internal SelectManyQueryOperator(IEnumerable<TLeftInput> leftChild,
57Func<TLeftInput, IEnumerable<TRightInput>> rightChildSelector,
58Func<TLeftInput, int, IEnumerable<TRightInput>> indexedRightChildSelector,
200internal override IEnumerable<TOutput> AsSequentialQuery(CancellationToken token)
208return (IEnumerable<TOutput>)(object)(CancellableEnumerable.Wrap(Child.AsSequentialQuery(token), token).SelectMany(m_rightChildSelector));
218return (IEnumerable<TOutput>)(object)(CancellableEnumerable.Wrap(Child.AsSequentialQuery(token), token).SelectMany(m_indexedRightChildSelector));
299IEnumerable<TRightInput> rightChild =
430IEnumerable<TRightInput> rightChild = m_selectManyOperator.m_rightChildSelector(m_mutables.m_currentLeftElement);
System\Linq\ParallelEnumerable.cs (67)
89/// <param name="source">An <see cref="System.Collections.Generic.IEnumerable{T}"/>
96public static ParallelQuery<TSource> AsParallel<TSource>(this IEnumerable<TSource> source)
237/// <param name="source">An <see cref="System.Collections.Generic.IEnumerable{T}"/> to convert
263/// <see cref="System.Collections.Generic.IEnumerable{T}"/> to force sequential
267/// <param name="source">A <see cref="ParallelQuery{T}"/> to convert to an <see cref="System.Collections.Generic.IEnumerable{T}"/>.</param>
268/// <returns>The source as an <see cref="System.Collections.Generic.IEnumerable{T}"/>
273public static IEnumerable<TSource> AsSequential<TSource>(this ParallelQuery<TSource> source)
703/// <see cref="System.Linq.ParallelQuery{TFirst}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TSecond}"/>.
708this ParallelQuery<TFirst> first, IEnumerable<TSecond> second, Func<TFirst, TSecond, TResult> resultSelector)
765/// <see cref="System.Linq.ParallelQuery{TOuter}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TInner}"/>.
770this ParallelQuery<TOuter> outer, IEnumerable<TInner> inner,
832/// <see cref="System.Linq.ParallelQuery{TOuter}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TInner}"/>.
837this ParallelQuery<TOuter> outer, IEnumerable<TInner> inner,
874Func<TOuter, IEnumerable<TInner>, TResult> resultSelector)
897/// <see cref="System.Linq.ParallelQuery{TOuter}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TInner}"/>.
903this ParallelQuery<TOuter> outer, IEnumerable<TInner> inner,
905Func<TOuter, IEnumerable<TInner>, TResult> resultSelector)
936Func<TOuter, IEnumerable<TInner>, TResult> resultSelector, IEqualityComparer<TKey> comparer)
966/// <see cref="System.Linq.ParallelQuery{TOuter}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TInner}"/>.
972this ParallelQuery<TOuter> outer, IEnumerable<TInner> inner,
974Func<TOuter, IEnumerable<TInner>, TResult> resultSelector, IEqualityComparer<TKey> comparer)
999this ParallelQuery<TSource> source, Func<TSource, IEnumerable<TResult>> selector)
1022this ParallelQuery<TSource> source, Func<TSource, int, IEnumerable<TResult>> selector)
1051this ParallelQuery<TSource> source, Func<TSource, IEnumerable<TCollection>> collectionSelector,
1087this ParallelQuery<TSource> source, Func<TSource, int, IEnumerable<TCollection>> collectionSelector,
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)
4314/// <see cref="System.Linq.ParallelQuery{TSource}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TSource}"/>.
4319public static ParallelQuery<TSource> Concat<TSource>(this ParallelQuery<TSource> first, IEnumerable<TSource> second)
4366/// <see cref="System.Linq.ParallelQuery{TSource}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TSource}"/>.
4371public static bool SequenceEqual<TSource>(this ParallelQuery<TSource> first, IEnumerable<TSource> second)
4483/// <see cref="System.Linq.ParallelQuery{TSource}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TSource}"/>.
4488public static bool SequenceEqual<TSource>(this ParallelQuery<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
4563/// <see cref="System.Linq.ParallelQuery{TSource}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TSource}"/>.
4569this ParallelQuery<TSource> first, IEnumerable<TSource> second)
4606/// <see cref="System.Linq.ParallelQuery{TSource}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TSource}"/>.
4612this ParallelQuery<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
4653/// <see cref="System.Linq.ParallelQuery{TSource}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TSource}"/>.
4659this ParallelQuery<TSource> first, IEnumerable<TSource> second)
4701/// <see cref="System.Linq.ParallelQuery{TSource}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TSource}"/>.
4707this ParallelQuery<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
4750/// <see cref="System.Linq.ParallelQuery{TSource}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TSource}"/>.
4756this ParallelQuery<TSource> first, IEnumerable<TSource> second)
4797/// <see cref="System.Linq.ParallelQuery{TSource}"/> and a right data source of type <see cref="System.Collections.Generic.IEnumerable{TSource}"/>.
4803this ParallelQuery<TSource> first, IEnumerable<TSource> second, IEqualityComparer<TSource> comparer)
4818/// <see cref="System.Collections.Generic.IEnumerable{T}"/> to force sequential
4822/// <param name="source">The sequence to type as <see cref="System.Collections.Generic.IEnumerable{T}"/>.</param>
4823/// <returns>The input sequence types as <see cref="System.Collections.Generic.IEnumerable{T}"/>.</returns>
4827public static IEnumerable<TSource> AsEnumerable<TSource>(this ParallelQuery<TSource> source)
5455IEnumerable<TSource> childAsSequential = queryOp.Child.AsSequentialQuery(settings.CancellationState.ExternalCancellationToken);
5456IEnumerable<TSource> childWithCancelChecks = CancellableEnumerable.Wrap(childAsSequential, settings.CancellationState.ExternalCancellationToken);
5497IEnumerable<TSource> childAsSequential = queryOp.Child.AsSequentialQuery(settings.CancellationState.ExternalCancellationToken);
5498IEnumerable<TSource> childWithCancelChecks = CancellableEnumerable.Wrap(childAsSequential, settings.CancellationState.ExternalCancellationToken);
5539IEnumerable<TSource> childAsSequential = queryOp.Child.AsSequentialQuery(settings.CancellationState.ExternalCancellationToken);
5540IEnumerable<TSource> childWithCancelChecks = CancellableEnumerable.Wrap(childAsSequential, settings.CancellationState.ExternalCancellationToken);
5584IEnumerable<TSource> childAsSequential = queryOp.Child.AsSequentialQuery(settings.CancellationState.ExternalCancellationToken);
5585IEnumerable<TSource> childWithCancelChecks = CancellableEnumerable.Wrap(childAsSequential, settings.CancellationState.ExternalCancellationToken);
5633IEnumerable<TSource> childAsSequential = queryOp.Child.AsSequentialQuery(settings.CancellationState.ExternalCancellationToken);
5634IEnumerable<TSource> childWithCancelChecks = CancellableEnumerable.Wrap(childAsSequential, settings.CancellationState.ExternalCancellationToken);
5675IEnumerable<TSource> childAsSequential = queryOp.Child.AsSequentialQuery(settings.CancellationState.ExternalCancellationToken);
5676IEnumerable<TSource> childWithCancelChecks = CancellableEnumerable.Wrap(childAsSequential, settings.CancellationState.ExternalCancellationToken);
5717IEnumerable<TSource> childAsSequential = queryOp.Child.AsSequentialQuery(settings.CancellationState.ExternalCancellationToken);
5718IEnumerable<TSource> childWithCancelChecks = CancellableEnumerable.Wrap(childAsSequential, settings.CancellationState.ExternalCancellationToken);
5758IEnumerable<TSource> childAsSequential = queryOp.Child.AsSequentialQuery(settings.CancellationState.ExternalCancellationToken);
5759IEnumerable<TSource> childWithCancelChecks = CancellableEnumerable.Wrap(childAsSequential, settings.CancellationState.ExternalCancellationToken);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\MutableAttributeTable.cs (7)
41internal IEnumerable<Type> AttributedTypes
67private static void AddAttributes(AttributeList list, IEnumerable<object> attributes)
84internal void AddCustomAttributes(Type type, IEnumerable<object> attributes)
93internal void AddCustomAttributes(Type ownerType, MemberDescriptor descriptor, IEnumerable<object> attributes)
102internal void AddCustomAttributes(Type ownerType, MemberInfo member, IEnumerable<object> attributes)
111internal void AddCustomAttributes(Type ownerType, DependencyProperty dp, IEnumerable<object> attributes)
120internal void AddCustomAttributes(Type ownerType, string memberName, IEnumerable<object> attributes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemtypesattribute.cs (1)
70public IEnumerable<Type> Types
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (21)
80internal static DataObject DoDragMoveImpl(IEnumerable<WorkflowViewElement> draggedViewElements, Point referencePoint)
284IEnumerable<ModelItem> modelItems = draggedDataObject.GetData(ModelItemsDataFormat) as IEnumerable<ModelItem>;
322public static IEnumerable<object> GetDroppedObjects(DependencyObject dropTarget, DragEventArgs e, EditingContext context)
327IEnumerable<ModelItem> droppedModelItems = e.Data.GetData(ModelItemsDataFormat) as IEnumerable<ModelItem>;
386IEnumerable<object> droppedObjects = GetDroppedObjects(dropTarget, e, context);
520IEnumerable<ModelItem> draggedModelItems = GetDraggedModelItems(e);
528public static IEnumerable<ModelItem> GetDraggedModelItems(DragEventArgs e)
530IEnumerable<ModelItem> draggedModelItems = e.Data.GetData(ModelItemsDataFormat) as IEnumerable<ModelItem>;
590internal static List<object> SortSelectedObjects(IEnumerable<object> selectedObjects)
688internal static void SetDragDropMovedViewElements(DragEventArgs e, IEnumerable<WorkflowViewElement> movedViewElements)
710internal static IEnumerable<WorkflowViewElement> GetDragDropMovedViewElements(DataObject data)
719return (IEnumerable<WorkflowViewElement>)data.GetData(MovedViewElementsFormat);
729internal static Dictionary<WorkflowViewElement, Point> GetViewElementRelativeLocations(IEnumerable<WorkflowViewElement> viewElements)
773IEnumerable<ModelItem> draggedModelItems = e.Data.GetData(ModelItemsDataFormat) as IEnumerable<ModelItem>;
797internal static IEnumerable<ModelItem> GetModelItemsToDrag(IEnumerable<ModelItem> modelItems)
844public ViewElementDragShadow(UIElement owner, IEnumerable<WorkflowViewElement> viewElements, Point offset, double scaleFactor)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (8)
23private static Dictionary<Type, Func<Activity, IEnumerable<ArgumentAccessor>>> argumentAccessorsGenerators = new Dictionary<Type, Func<Activity, IEnumerable<ArgumentAccessor>>>();
30public static void RegisterAccessorsGenerator(Type activityType, Func<Activity, IEnumerable<ArgumentAccessor>> argumentAccessorsGenerator)
51internal static bool TryGetArgumentAccessorsGenerator(Type activityType, out Func<Activity, IEnumerable<ArgumentAccessor>> argumentAccessorsGenerator)
130internal static List<ExpressionReplacement> ComputeExpressionReplacements(IEnumerable<ActivityWithResult> expressions, EditingContext context, ArgumentAccessorWrapperCache argumentAccessorWrapperCache)
217IEnumerable<ArgumentAccessorWrapper> argumentAccessorWrappers = argumentAccessorWrapperCache.GetArgumentAccessorWrappers(parentActivity);
287Func<Activity, IEnumerable<ArgumentAccessor>> argumentAccessorsGenerator;
290IEnumerable<ArgumentAccessor> argumentAccessors = argumentAccessorsGenerator(activity);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (4)
337else if (dataType == typeof(IEnumerable<DbDataRecord>) || dataType == typeof(DataTable)) {
404else if (sqlType == typeof(IEnumerable<DbDataRecord>)) return DBNull.Value;
815(255, 255, -1, false, false, false, TdsEnums.SQLTABLE, TdsEnums.SQLTABLE, MetaTypeName.TABLE, typeof(IEnumerable<DbDataRecord>), typeof(IEnumerable<DbDataRecord>), SqlDbType.Structured, DbType.Object, 0);
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (22)
206public static DbLambda Lambda(DbExpression body, IEnumerable<DbVariableReferenceExpression> variables)
231private static DbLambda CreateLambda(DbExpression body, IEnumerable<DbVariableReferenceExpression> variables)
366public static DbCrossJoinExpression CrossJoin(IEnumerable<DbExpressionBinding> inputs)
477public static DbGroupByExpression GroupBy(this DbGroupExpressionBinding input, IEnumerable<KeyValuePair<string, DbExpression>> keys, IEnumerable<KeyValuePair<string, DbAggregate>> aggregates)
514public static DbSkipExpression Skip(this DbExpressionBinding input, IEnumerable<DbSortClause> sortOrder, DbExpression count)
533public static DbSortExpression Sort(this DbExpressionBinding input, IEnumerable<DbSortClause> sortOrder)
1146public static DbRefExpression CreateRef(this EntitySet entitySet, IEnumerable<DbExpression> keyValues)
1180public static DbRefExpression CreateRef(this EntitySet entitySet, EntityType entityType, IEnumerable<DbExpression> keyValues)
1203private static DbRefExpression CreateRefExpression(EntitySet entitySet, IEnumerable<DbExpression> keyValues)
1210private static DbRefExpression CreateRefExpression(EntitySet entitySet, EntityType entityType, IEnumerable<DbExpression> keyValues)
1444public static DbCaseExpression Case(IEnumerable<DbExpression> whenExpressions, IEnumerable<DbExpression> thenExpressions, DbExpression elseExpression)
1466public static DbFunctionExpression Invoke(this EdmFunction function, IEnumerable<DbExpression> arguments)
1490private static DbFunctionExpression InvokeFunction(EdmFunction function, IEnumerable<DbExpression> arguments)
1511public static DbLambdaExpression Invoke(this DbLambda lambda, IEnumerable<DbExpression> arguments)
1535private static DbLambdaExpression InvokeLambda(DbLambda lambda, IEnumerable<DbExpression> arguments)
1565public static DbNewInstanceExpression New(this TypeUsage instanceType, IEnumerable<DbExpression> arguments)
1598private static DbNewInstanceExpression NewInstance(TypeUsage instanceType, IEnumerable<DbExpression> arguments)
1614public static DbNewInstanceExpression NewCollection(IEnumerable<DbExpression> elements)
1633private static DbNewInstanceExpression CreateNewCollection(IEnumerable<DbExpression> elements)
1664public static DbNewInstanceExpression NewRow(IEnumerable<KeyValuePair<string, DbExpression>> columnValues)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (22)
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)
183private static DbExpressionList CreateExpressionList(IEnumerable<DbExpression> arguments, string argumentName, Action<DbExpression, int> validationCallback)
188private static DbExpressionList CreateExpressionList(IEnumerable<DbExpression> arguments, string argumentName, bool allowEmpty, Action<DbExpression, int> validationCallback)
207private static DbExpressionList CreateExpressionList(IEnumerable<DbExpression> arguments, string argumentName, int expectedElementCount, Action<DbExpression, int> validationCallback)
324internal static DbExpressionList ValidateFunctionAggregate(EdmFunction function, IEnumerable<DbExpression> args)
391internal static System.Collections.ObjectModel.ReadOnlyCollection<DbVariableReferenceExpression> ValidateLambda(IEnumerable<DbVariableReferenceExpression> variables, DbExpression body)
464internal static System.Collections.ObjectModel.ReadOnlyCollection<DbExpressionBinding> ValidateCrossJoin(IEnumerable<DbExpressionBinding> inputs, out TypeUsage resultType)
561internal static TypeUsage ValidateGroupBy(DbGroupExpressionBinding input, IEnumerable<KeyValuePair<string, DbExpression>> keys, IEnumerable<KeyValuePair<string, DbAggregate>> aggregates, out DbExpressionList validKeys, out System.Collections.ObjectModel.ReadOnlyCollection<DbAggregate> validAggregates)
664private static System.Collections.ObjectModel.ReadOnlyCollection<DbSortClause> ValidateSortArguments(DbExpressionBinding input, IEnumerable<DbSortClause> sortOrder)
676internal static System.Collections.ObjectModel.ReadOnlyCollection<DbSortClause> ValidateSkip(DbExpressionBinding input, IEnumerable<DbSortClause> sortOrder, DbExpression count)
713internal static System.Collections.ObjectModel.ReadOnlyCollection<DbSortClause> ValidateSort(DbExpressionBinding input, IEnumerable<DbSortClause> sortOrder)
1121internal static TypeUsage ValidateCreateRef(EntitySet entitySet, IEnumerable<DbExpression> keyValues, out DbExpression keyConstructor)
1127internal static TypeUsage ValidateCreateRef(EntitySet entitySet, EntityType entityType, IEnumerable<DbExpression> keyValues, out DbExpression keyConstructor)
1407internal static TypeUsage ValidateCase(IEnumerable<DbExpression> whenExpressions, IEnumerable<DbExpression> thenExpressions, DbExpression elseExpression, out DbExpressionList validWhens, out DbExpressionList validThens)
1464internal static TypeUsage ValidateFunction(EdmFunction function, IEnumerable<DbExpression> arguments, out DbExpressionList validArgs)
1504internal static TypeUsage ValidateInvoke(DbLambda lambda, IEnumerable<DbExpression> arguments, out DbExpressionList validArguments)
1525internal static TypeUsage ValidateNewCollection(IEnumerable<DbExpression> elements, out DbExpressionList validElements)
1569internal static TypeUsage ValidateNewRow(IEnumerable<KeyValuePair<string, DbExpression>> columnValues, out DbExpressionList validElements)
1585internal static TypeUsage ValidateNew(TypeUsage instanceType, IEnumerable<DbExpression> arguments, out DbExpressionList validArguments)
1643internal static TypeUsage ValidateNewEntityWithRelationships(EntityType entityType, IEnumerable<DbExpression> attributeValues, IList<DbRelatedEntityRef> relationships, out DbExpressionList validArguments, out System.Collections.ObjectModel.ReadOnlyCollection<DbRelatedEntityRef> validRelatedRefs)
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (6)
100protected override IEnumerable<DbExpressionRule> GetRules()
173internal static Func<IEnumerable<DbExpression>, bool> AnyExpressions { get { return (elems => true); } }
215internal static Func<IEnumerable<DbExpression>, bool> MatchForAll(Func<DbExpression, bool> elementPattern)
285internal static Func<DbExpression, bool> MatchCase(Func<IEnumerable<DbExpression>, bool> whenPattern, Func<IEnumerable<DbExpression>, bool> thenPattern, Func<DbExpression, bool> elsePattern)
298internal static Func<DbExpression, bool> MatchNewInstance(Func<IEnumerable<DbExpression>, bool> argumentsPattern)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (5)
53Func<TypeUsage, IEnumerable<TypeUsage>> flattenArgumentType,
54Func<TypeUsage, TypeUsage, IEnumerable<TypeUsage>> flattenParameterType,
87Func<TypeUsage, IEnumerable<TypeUsage>> flattenArgumentType,
88Func<TypeUsage, TypeUsage, IEnumerable<TypeUsage>> flattenParameterType,
196Func<TypeUsage, TypeUsage, IEnumerable<TypeUsage>> flattenParameterType,
System\Data\Common\EntityUtil.cs (14)
113internal static IEnumerable<KeyValuePair<T1, T2>> Zip<T1, T2>(this IEnumerable<T1> first, IEnumerable<T2> second)
1615static private IEnumerable<ObjectStateEntry> ProcessStateEntries(IEnumerable<IEntityStateEntry> stateEntries)
1638return Update(message, innerException, (IEnumerable<IEntityStateEntry>)stateEntries);
1640static internal UpdateException Update(string message, Exception innerException, IEnumerable<IEntityStateEntry> stateEntries)
1644static internal OptimisticConcurrencyException UpdateConcurrency(long rowsAffected, Exception innerException, IEnumerable<IEntityStateEntry> stateEntries)
1764static internal IEnumerable<T> CheckArgumentContainsNull<T>(ref IEnumerable<T> enumerableArgument, string argumentName) where T : class
1777static internal IEnumerable<T> CheckArgumentEmpty<T>(ref IEnumerable<T> enumerableArgument, Func<string, string> errorMessage, string argumentName)
1788private static void GetCheapestSafeCountOfEnumerable<T>(ref IEnumerable<T> enumerable, out int count)
1794private static ICollection<T> GetCheapestSafeEnumerableAsCollection<T>(ref IEnumerable<T> enumerable)
System\Data\Common\Utils\MetadataHelper.cs (9)
326internal static IEnumerable<EntitySet> GetInfluencingEntitySetsForTable(EntitySet table, MetadataWorkspace workspace)
350internal static IEnumerable<EdmType> GetTypeAndSubtypesOf(EdmType type, MetadataWorkspace workspace, bool includeAbstractTypes)
355internal static IEnumerable<EdmType> GetTypeAndSubtypesOf(EdmType type, ItemCollection itemCollection, bool includeAbstractTypes)
381private static IEnumerable<EdmType> GetTypeAndSubtypesOf<T_EdmType>(EdmType type, ItemCollection itemCollection, bool includeAbstractTypes)
389IEnumerable<T_EdmType> typesInWorkSpace = itemCollection.GetItems<T_EdmType>();
406internal static IEnumerable<EdmType> GetTypeAndParentTypesOf(EdmType type, ItemCollection itemCollection, bool includeAbstractTypes)
437IEnumerable<EntityType> typesInWorkSpace = edmItemCollection.GetItems<EntityType>();
516IEnumerable<EdmMember> otherEndProperties;
823internal static string GenerateHashForAllExtentViewsContent(double schemaVersion, IEnumerable<KeyValuePair<string, string>> extentViews)
System\Data\Mapping\StorageMappingItemLoader.cs (14)
939var entityTypeNames = entityTypeAttribute.Split(StorageMslConstructs.TypeNameSperator).Select(s => s.Trim());
991IEnumerable<EdmType> typeAndSubTypes = MetadataHelper.GetTypeAndSubtypesOf(entityType, EdmItemCollection, false /*includeAbstractTypes*/);
1200IEnumerable<StorageModificationFunctionParameterBinding> parameterList = new List<StorageModificationFunctionParameterBinding>();
1425IEnumerable<EdmMember> dependentKeys = MetadataHelper.GetEntityTypeForEnd((AssociationEndMember)constraint.ToRole).KeyMembers;
1982IEnumerable<StructuralType> currentTypesInHierachy = isOfTypeEntityTypes.Concat(entityTypes).Distinct().OfType<StructuralType>();
1999IEnumerable<StructuralType> currentTypes,
2048IEnumerable<StructuralType> currentTypes)
3777IEnumerable<StorageModificationFunctionParameterBinding> parameters = LoadParameterBindings(nav.Clone(), entityType);
3778IEnumerable<StorageModificationFunctionResultBinding> resultBindings = LoadResultBindings(nav.Clone(), entityType);
3807IEnumerable<StorageModificationFunctionParameterBinding> parameters = LoadParameterBindings(nav.Clone(), m_associationSet.ElementType);
3814private IEnumerable<StorageModificationFunctionResultBinding> LoadResultBindings(XPathNavigator nav, EntityType entityType)
3882private IEnumerable<StorageModificationFunctionParameterBinding> LoadParameterBindings(XPathNavigator nav, StructuralType type)
3906private IEnumerable<StorageModificationFunctionParameterBinding> LoadParameterBindings(XPathNavigator nav, StructuralType type,
4305IEnumerable<EdmMember> members = m_members;
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (36)
198private IEnumerable<FragmentQuery> FragmentQueries
207private IEnumerable<Constant> GetDomain(MemberPath currentPath)
211IEnumerable<EdmType> types;
247IEnumerable<Constant> oldDomain = _domainMap.GetDomain(currentPath);
299internal FragmentQuery GetDomainQuery(IEnumerable<FragmentQuery> fragmentQueries, EdmType generatedType)
312IEnumerable<EdmType> derivedTypes;
332IEnumerable<BoolExpression> whereClauses = from fragmentQuery in fragmentQueries
439IEnumerable<MemberPath> notCoverdAttributes;
468private static List<String> GetTypeBasedMemberPathList(IEnumerable<MemberPath> nonConditionalScalarAttributes)
480private void AddUnrecoverableAttributesError(IEnumerable<MemberPath> attributes, BoolExpression domainAddedWhereClause, ErrorLog errorLog)
493private void GenerateCaseStatements(IEnumerable<MemberPath> members,
498IEnumerable<LeftCellWrapper> usedCells = _context.AllWrappersForExtent.Where(w => _usedViews.Contains(w.FragmentQuery));
696IEnumerable<MemberPath> notCoveredAttributes;
713IEnumerable<MemberPath> notCoveredAttributes;
804private bool FindRewritingAndUsedViews(IEnumerable<MemberPath> attributes, BoolExpression whereClause,
807IEnumerable<MemberPath> notCoveredAttributes;
814private bool FindRewritingAndUsedViews(IEnumerable<MemberPath> attributes, BoolExpression whereClause,
816out IEnumerable<MemberPath> notCoveredAttributes)
827private bool FindRewriting(IEnumerable<MemberPath> attributes, BoolExpression whereClause,
828out Tile<FragmentQuery> rewriting, out IEnumerable<MemberPath> notCoveredAttributes)
841private bool RewriteQuery(Tile<FragmentQuery> toFill, Tile<FragmentQuery> toAvoid, out Tile<FragmentQuery> rewriting, out IEnumerable<MemberPath> notCoveredAttributes,
854IEnumerable<Tile<FragmentQuery>> relevantViews = GetRelevantViews(toFillQuery, isRelaxed);
922IEnumerable<Tile<FragmentQuery>> views, out Tile<FragmentQuery> rewriting)
1010private IEnumerable<Tile<FragmentQuery>> GetRelevantViews(FragmentQuery query, bool isRelaxed)
1095IEnumerable<FragmentQuery> usedFollowedByUnusedViews = usedViews.Concat(_fragmentQueries);
1127IEnumerable<MemberPath> keyAttributes, MemberDomainMap domainMap)
1133IEnumerable<MemberPath> attributes = keyAttributes;
1147private static IEnumerable<Constant> GetTypeConstants(IEnumerable<EdmType> types)
1155private static IEnumerable<MemberPath> GetNonConditionalScalarMembers(EdmType edmType, MemberPath currentPath, MemberDomainMap domainMap)
1160private static IEnumerable<MemberPath> GetConditionalComplexMembers(EdmType edmType, MemberPath currentPath, MemberDomainMap domainMap)
1165private static IEnumerable<MemberPath> GetNonConditionalComplexMembers(EdmType edmType, MemberPath currentPath, MemberDomainMap domainMap)
1170private static IEnumerable<MemberPath> GetConditionalScalarMembers(EdmType edmType, MemberPath currentPath, MemberDomainMap domainMap)
1175private IEnumerable<MemberPath> NonKeys(IEnumerable<MemberPath> attributes)
1252IEnumerable<MemberPath> memberVariables =
System\Data\Mapping\ViewGeneration\Structures\CaseStatement.cs (8)
134internal IEnumerable<EdmType> InstantiatedTypes
227internal StringBuilder AsEsql(StringBuilder builder, IEnumerable<WithRelationship> withRelationships, string blockAlias, int indentLevel)
262internal DbExpression AsCqt(DbExpression row, IEnumerable<WithRelationship> withRelationships)
289private static StringBuilder CaseSlotValueAsEsql(StringBuilder builder, ProjectedSlot slot, MemberPath outputMember, string blockAlias, IEnumerable<WithRelationship> withRelationships, int indentLevel)
299private static void WithRelationshipsClauseAsEsql(StringBuilder builder, IEnumerable<WithRelationship> withRelationships, string blockAlias, int indentLevel, ProjectedSlot slot)
317private static DbExpression CaseSlotValueAsCqt(DbExpression row, ProjectedSlot slot, MemberPath outputMember, IEnumerable<WithRelationship> withRelationships)
327private static DbExpression WithRelationshipsClauseAsCqt(DbExpression row, DbExpression slotValueExpr, IEnumerable<WithRelationship> withRelationships, ProjectedSlot slot)
355private static void WithRelationshipsClauseAsCql(Action<WithRelationship> emitWithRelationship, IEnumerable<WithRelationship> withRelationships, ProjectedSlot slot)
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (18)
35internal Domain(Constant value, IEnumerable<Constant> possibleDiscreteValues) :
42internal Domain(IEnumerable<Constant> values,
43IEnumerable<Constant> possibleDiscreteValues)
86internal IEnumerable<Constant> AllPossibleValues
110internal IEnumerable<Constant> Values
197internal static Constant GetDefaultValueForMemberPath(MemberPath memberPath, IEnumerable<LeftCellWrapper> wrappersForErrorReporting,
253internal static CellConstantSet ExpandNegationsInDomain(IEnumerable<Constant> domain, IEnumerable<Constant> otherPossibleValues)
290internal static CellConstantSet ExpandNegationsInDomain(IEnumerable<Constant> domain)
298static CellConstantSet DeterminePossibleValues(IEnumerable<Constant> domain)
338ComputeConstantDomainSetsForSlotsInQueryViews(IEnumerable<Cell> cells, EdmItemCollection edmItemCollection, bool isValidationEnabled)
389ComputeConstantDomainSetsForSlotsInUpdateViews(IEnumerable<Cell> cells, EdmItemCollection edmItemCollection)
465private static bool TryGetDomainRestrictedByWhereClause(IEnumerable<Constant> domain, MemberProjectedSlot slot, CellQuery cellQuery, out CellConstantSet result)
468var conditionsForSlot = cellQuery.GetConjunctsFromWhereClause()
512private static NegatedConstant GetNegatedConstant(IEnumerable<Constant> constants)
529private static CellConstantSet DeterminePossibleValues(IEnumerable<Constant> domain1, IEnumerable<Constant> domain2)
550private static IEnumerable<Constant> CreateList(object value1, object value2)
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (8)
64internal MemberDomainMap(ViewTarget viewTarget, bool isValidationEnabled, IEnumerable<Cell> extentCells, EdmItemCollection edmItemCollection, ConfigViewGenerator config, Dictionary<EntityType, Set<EntityType>> inheritanceGraph)
262internal static void PropagateUpdateDomainToQueryDomain(IEnumerable<Cell> cells, MemberDomainMap queryDomainMap, MemberDomainMap updateDomainMap)
315internal IEnumerable<MemberPath> ConditionMembers(EntitySetBase extent)
327internal IEnumerable<MemberPath> NonConditionMembers(EntitySetBase extent)
359internal IEnumerable<Constant> GetDomain(MemberPath path)
376internal void UpdateConditionMemberDomain(MemberPath path, IEnumerable<Constant> domainValues)
386private void AddToDomainMap(MemberPath member, IEnumerable<Constant> domainValues)
405IEnumerable<Constant> domain = GetDomain(memberPath);
System\Data\Mapping\ViewGeneration\Structures\NegatedConstant.cs (7)
31internal NegatedConstant(IEnumerable<Constant> values)
46internal IEnumerable<Constant> Elements
130internal StringBuilder AsEsql(StringBuilder builder, string blockAlias, IEnumerable<Constant> constants, MemberPath outputMember, bool skipIsNotNull)
135internal DbExpression AsCqt(DbExpression row, IEnumerable<Constant> constants, MemberPath outputMember, bool skipIsNotNull)
162internal StringBuilder AsUserString(StringBuilder builder, string blockAlias, IEnumerable<Constant> constants, MemberPath outputMember, bool skipIsNotNull)
173private void AsCql(Action trueLiteral, Action varIsNotNull, Action<Constant> varNotEqualsTo, IEnumerable<Constant> constants, MemberPath outputMember, bool skipIsNotNull)
210private StringBuilder ToStringHelper(StringBuilder builder, string blockAlias, IEnumerable<Constant> constants, MemberPath outputMember, bool skipIsNotNull, bool userString)
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (16)
75internal IEnumerable<MemberPath> ChildColumns
80internal IEnumerable<MemberPath> ParentColumns
255IEnumerable<Cell> cells,
265IEnumerable<MemberPath> primaryKeyFields = primaryKey.KeyFields;
334IEnumerable<LeftCellWrapper> parentWrappers = GetWrappersFromContext(parentContext, ParentTable);
335IEnumerable<LeftCellWrapper> childWrappers = GetWrappersFromContext(childContext, ChildTable);
375var foreignKeyAssociations = childContext.EntityContainerMapping.EdmEntityContainer.BaseEntitySets.OfType<AssociationSet>().Where(it => it.ElementType.IsForeignKey).Select(it => it.ElementType);
386var childRefPropertiesCollection = childPropertiesSet.Where(it => it.SetEquals(new Set<EdmProperty>(refConstraint.ToProperties)));
387var parentRefPropertiesCollection = parentPropertiesSet.Where(it => it.SetEquals(new Set<EdmProperty>(refConstraint.FromProperties)));
410private Set<int> GetPropertyIndexes(IEnumerable<EdmProperty> properties1, ReadOnlyMetadataCollection<EdmProperty> properties2)
494private bool CheckParentColumnsForForeignKey(Cell cell, IEnumerable<Cell> cells, AssociationEndMember parentEnd, ref List<ErrorLog.Record> errorList)
530private static EntitySet FindEntitySetForColumnsMappedToEntityKeys(IEnumerable<Cell> cells, IEnumerable<MemberPath> tableColumns)
570private static AssociationEndMember GetRelationEndForColumns(Cell cell, IEnumerable<MemberPath> columns)
792private static List<List<int>> GetSlotNumsForColumns(Cell cell, IEnumerable<MemberPath> columns)
854private bool IsConstraintRelevantForCells(IEnumerable<Cell> cells)
System\Data\Metadata\EdmItemCollection.cs (11)
43internal EdmItemCollection(IEnumerable<XmlReader> xmlReaders,
78internal EdmItemCollection(IEnumerable<XmlReader> xmlReaders,
79IEnumerable<string> filePaths)
89public EdmItemCollection(IEnumerable<XmlReader> xmlReaders)
156private IList<EdmSchemaError> Init(IEnumerable<XmlReader> xmlReaders,
157IEnumerable<string> filePaths,
269internal static IList<EdmSchemaError> LoadItems(IEnumerable<XmlReader> xmlReaders,
270IEnumerable<string> sourceFilePaths,
308IEnumerable<GlobalItem> newGlobalItems = LoadSomSchema(somSchemas, manifest, itemCollection);
359internal static IEnumerable<GlobalItem> LoadSomSchema(IList<Schema> somSchemas,
363IEnumerable<GlobalItem> newGlobalItems = Converter.ConvertSchema(somSchemas,
System\Data\Metadata\MappingMetadataHelper.cs (4)
24internal static IEnumerable<StorageTypeMapping> GetMappingsForEntitySetAndType(StorageMappingItemCollection mappingCollection, EntityContainer container, EntitySetBase entitySet, EntityTypeBase entityType)
45internal static IEnumerable<StorageTypeMapping> GetMappingsForEntitySetAndSuperTypes(StorageMappingItemCollection mappingCollection, EntityContainer container, EntitySetBase entitySet, EntityTypeBase childEntityType)
58private static IEnumerable<StorageTypeMapping> GetIsTypeOfMappingsForEntitySetAndType(StorageMappingItemCollection mappingCollection, EntityContainer container, EntitySetBase entitySet, EntityTypeBase entityType, EntityTypeBase childEntityType)
69internal static IEnumerable<StorageEntityTypeModificationFunctionMapping> GetModificationFunctionMappingsForEntitySetAndType(StorageMappingItemCollection mappingCollection, EntityContainer container, EntitySetBase entitySet, EntityTypeBase entityType)
System\ServiceModel\Description\ImportedPolicyConversionContext.cs (38)
17internal static IEnumerable<PolicyConversionContext> GetPolicyConversionContextEnumerator(ServiceEndpoint endpoint, PolicyAlternatives policyAlternatives)
22internal static IEnumerable<PolicyConversionContext> GetPolicyConversionContextEnumerator(ServiceEndpoint endpoint, PolicyAlternatives policyAlternatives,
36ImportedPolicyConversionContext(ServiceEndpoint endpoint, IEnumerable<XmlElement> endpointAssertions,
37Dictionary<OperationDescription, IEnumerable<XmlElement>> operationBindingAssertions,
38Dictionary<MessageDescription, IEnumerable<XmlElement>> messageBindingAssertions,
39Dictionary<FaultDescription, IEnumerable<XmlElement>> faultBindingAssertions,
65foreach (KeyValuePair<OperationDescription, IEnumerable<XmlElement>> entry in operationBindingAssertions)
71foreach (KeyValuePair<MessageDescription, IEnumerable<XmlElement>> entry in messageBindingAssertions)
77foreach (KeyValuePair<FaultDescription, IEnumerable<XmlElement>> entry in faultBindingAssertions)
114public static IEnumerable<PolicyConversionContext> GetPolicyConversionContextEnumerator(ServiceEndpoint endpoint,
117IEnumerable<Dictionary<MessageDescription, IEnumerable<XmlElement>>> messageAssertionEnumerator;
118IEnumerable<Dictionary<FaultDescription, IEnumerable<XmlElement>>> faultAssertionEnumerator;
119IEnumerable<Dictionary<OperationDescription, IEnumerable<XmlElement>>> operationAssertionEnumerator;
120faultAssertionEnumerator = PolicyIterationHelper.GetCartesianProduct<FaultDescription, IEnumerable<XmlElement>>(policyAlternatives.FaultBindingAlternatives);
121messageAssertionEnumerator = PolicyIterationHelper.GetCartesianProduct<MessageDescription, IEnumerable<XmlElement>>(policyAlternatives.MessageBindingAlternatives);
122operationAssertionEnumerator = PolicyIterationHelper.GetCartesianProduct<OperationDescription, IEnumerable<XmlElement>>(policyAlternatives.OperationBindingAlternatives);
124foreach (Dictionary<FaultDescription, IEnumerable<XmlElement>> faultAssertionsSelection in faultAssertionEnumerator)
126foreach (Dictionary<MessageDescription, IEnumerable<XmlElement>> messageAssertionsSelection in messageAssertionEnumerator)
128foreach (Dictionary<OperationDescription, IEnumerable<XmlElement>> operationAssertionsSelection in operationAssertionEnumerator)
130foreach (IEnumerable<XmlElement> endpointAssertionsSelection in policyAlternatives.EndpointAlternatives)
151IEnumerable<T> inner;
154public MaxItemsEnumerable(IEnumerable<T> inner, int maxItems)
241internal static IEnumerable<Dictionary<K, V>> GetCartesianProduct<K, V>(Dictionary<K, IEnumerable<V>> sets)
255static KeyValuePair<K, IEnumerator<V>>[] InitializeCounter<K, V>(Dictionary<K, IEnumerable<V>> sets, Dictionary<K, V> counterValue)
261foreach (KeyValuePair<K, IEnumerable<V>> kvp in sets)
276static bool IncrementCounter<K, V>(KeyValuePair<K, IEnumerator<V>>[] digits, Dictionary<K, IEnumerable<V>> sets, Dictionary<K, V> counterValue)
313public IEnumerable<IEnumerable<XmlElement>> EndpointAlternatives;
314public Dictionary<OperationDescription, IEnumerable<IEnumerable<XmlElement>>> OperationBindingAlternatives;
315public Dictionary<MessageDescription, IEnumerable<IEnumerable<XmlElement>>> MessageBindingAlternatives;
316public Dictionary<FaultDescription, IEnumerable<IEnumerable<XmlElement>>> FaultBindingAlternatives;
System\ServiceModel\Description\MetadataResolver.cs (12)
27public static ServiceEndpointCollection Resolve(IEnumerable<ContractDescription> contracts, EndpointAddress address)
31public static ServiceEndpointCollection Resolve(IEnumerable<ContractDescription> contracts, EndpointAddress address, MetadataExchangeClient client)
61public static ServiceEndpointCollection Resolve(IEnumerable<ContractDescription> contracts, Uri address, MetadataExchangeClientMode mode)
65public static ServiceEndpointCollection Resolve(IEnumerable<ContractDescription> contracts, Uri address, MetadataExchangeClientMode mode, MetadataExchangeClient client)
95public static IAsyncResult BeginResolve(IEnumerable<ContractDescription> contracts, EndpointAddress address, AsyncCallback callback, object asyncState)
99public static IAsyncResult BeginResolve(IEnumerable<ContractDescription> contracts, EndpointAddress address, MetadataExchangeClient client, AsyncCallback callback, object asyncState)
127public static IAsyncResult BeginResolve(IEnumerable<ContractDescription> contracts, Uri address, MetadataExchangeClientMode mode, AsyncCallback callback, object asyncState)
131public static IAsyncResult BeginResolve(IEnumerable<ContractDescription> contracts, Uri address, MetadataExchangeClientMode mode, MetadataExchangeClient client,
163IEnumerable<ContractDescription> knownContracts;
165internal AsyncMetadataResolverHelper(EndpointAddress address, MetadataExchangeClientMode mode, MetadataExchangeClient client, IEnumerable<ContractDescription> knownContracts, AsyncCallback callback, object asyncState)
230private static ServiceEndpointCollection ImportEndpoints(MetadataSet metadataSet, IEnumerable<ContractDescription> contracts, MetadataExchangeClient client)
280private static void ValidateContracts(IEnumerable<ContractDescription> contracts)
System\ServiceModel\Description\PolicyReader.cs (47)
27internal IEnumerable<IEnumerable<XmlElement>> NormalizePolicy(IEnumerable<XmlElement> policyAssertions)
51static IEnumerable<XmlElement> Empty = new PolicyHelper.EmptyEnumerable<XmlElement>();
52static IEnumerable<IEnumerable<XmlElement>> EmptyEmpty = new PolicyHelper.SingleEnumerable<IEnumerable<XmlElement>>(new PolicyHelper.EmptyEnumerable<XmlElement>());
61IEnumerable<IEnumerable<XmlElement>> ReadNode(XmlNode node, XmlElement contextAssertion, YieldLimiter yieldLimiter)
75IEnumerable<IEnumerable<XmlElement>> nodes = EmptyEmpty;
100IEnumerable<IEnumerable<XmlElement>> ReadNode_PolicyReference(XmlElement element, XmlElement contextAssertion, YieldLimiter yieldLimiter)
131IEnumerable<IEnumerable<XmlElement>> ReadNode_Assertion(XmlElement element, YieldLimiter yieldLimiter)
139IEnumerable<IEnumerable<XmlElement>> ReadNode_ExactlyOne(XmlElement element, XmlElement contextAssertion, YieldLimiter yieldLimiter)
145foreach (IEnumerable<XmlElement> alternative in ReadNode(child, contextAssertion, yieldLimiter))
160IEnumerable<IEnumerable<XmlElement>> ReadNode_PolicyOrAll(XmlElement element, XmlElement contextAssertion, YieldLimiter yieldLimiter)
162IEnumerable<IEnumerable<XmlElement>> target = EmptyEmpty;
168IEnumerable<IEnumerable<XmlElement>> childPolicy = ReadNode(child, contextAssertion, yieldLimiter);
175internal IEnumerable<IEnumerable<XmlElement>> NormalizePolicy(IEnumerable<XmlElement> policyAssertions)
177IEnumerable<IEnumerable<XmlElement>> target = EmptyEmpty;
181IEnumerable<IEnumerable<XmlElement>> childPolicy = ReadNode(child, child, yieldLimiter);
269internal static IEnumerable<IEnumerable<T>> CrossProduct<T>(IEnumerable<IEnumerable<T>> xs, IEnumerable<IEnumerable<T>> ys, YieldLimiter yieldLimiter)
271foreach (IEnumerable<T> x in AtLeastOne<T>(xs, yieldLimiter))
273foreach (IEnumerable<T> y in AtLeastOne<T>(ys, yieldLimiter))
287static IEnumerable<IEnumerable<T>> AtLeastOne<T>(IEnumerable<IEnumerable<T>> xs, YieldLimiter yieldLimiter)
290foreach (IEnumerable<T> x in xs)
316static IEnumerable<T> Merge<T>(IEnumerable<T> e1, IEnumerable<T> e2, YieldLimiter yieldLimiter)
System\ServiceModel\Description\WsdlImporter.cs (39)
45public WsdlImporter(MetadataSet metadata, IEnumerable<IPolicyImportExtension> policyImportExtensions,
46IEnumerable<IWsdlImportExtension> wsdlImportExtensions)
51public WsdlImporter(MetadataSet metadata, IEnumerable<IPolicyImportExtension> policyImportExtensions,
52IEnumerable<IWsdlImportExtension> wsdlImportExtensions, MetadataImporterQuotas quotas)
590void ProcessMetadataDocuments(IEnumerable<MetadataSection> metadataSections)
1158IEnumerable<IEnumerable<XmlElement>> alternatives = importer.NormalizePolicy(new XmlElement[] { policyElement });
1159foreach (IEnumerable<XmlElement> alternative in alternatives)
1513IEnumerable<WsdlNS.Binding> FindBindingsForPortType(WsdlNS.PortType wsdlPortType)
1523IEnumerable<WsdlNS.Binding> FindBindingsForContract(ContractDescription contract)
1534IEnumerable<WsdlNS.Port> FindPortsForBinding(WsdlNS.Binding binding)
1543IEnumerable<WsdlNS.Binding> GetAllBindings()
1554IEnumerable<WsdlNS.Port> GetAllPorts()
1576internal static IEnumerable<MetadataSection> CreateMetadataDocuments(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, IEnumerable<XmlElement> policyDocuments)
1595IEnumerable<PolicyConversionContext> policyContexts = GetPolicyConversionContextEnumerator(endpointContext.Endpoint, policyAlternatives, this.Quotas);
1697static void AddUnImportedPolicyString(StringBuilder stringBuilder, WsdlNS.NamedItem item, IEnumerable<XmlElement> unimportdPolicy)
2003IEnumerable<IEnumerable<XmlElement>> GetPolicyAlternatives(WsdlNS.NamedItem item, WsdlNS.ServiceDescription wsdl)
2081internal static IEnumerable<XmlElement> GetEmbeddedPolicy(WsdlNS.NamedItem item)
2091IEnumerable<XmlElement> GetReferencedPolicy(WsdlNS.NamedItem item, WsdlNS.ServiceDescription wsdl)
2110IEnumerable<string> GetPolicyReferenceUris(WsdlNS.NamedItem item, string xPath)
2125IEnumerable<string> ReadPolicyReferenceElements(WsdlNS.NamedItem item, string xPath)
2204IEnumerable<IEnumerable<XmlElement>> wsdlBindingAlternatives = this.GetPolicyAlternatives(endpointContext.WsdlBinding, bindingWsdl);
2207IEnumerable<IEnumerable<XmlElement>> wsdlPortAlternatives = this.GetPolicyAlternatives(endpointContext.WsdlPort, endpointContext.WsdlPort.Service.ServiceDescription);
2218policyAlternatives.OperationBindingAlternatives = new Dictionary<OperationDescription, IEnumerable<IEnumerable<XmlElement>>>(endpointContext.Endpoint.Contract.Operations.Count);
2219policyAlternatives.MessageBindingAlternatives = new Dictionary<MessageDescription, IEnumerable<IEnumerable<XmlElement>>>();
2220policyAlternatives.FaultBindingAlternatives = new Dictionary<FaultDescription, IEnumerable<IEnumerable<XmlElement>>>();
2233IEnumerable<IEnumerable<XmlElement>> operationAlternatives = this.GetPolicyAlternatives(wsdlOperationBinding, bindingWsdl);
2264IEnumerable<IEnumerable<XmlElement>> messageAlternatives = this.GetPolicyAlternatives(wsdlMessageBinding, bindingWsdl);
2280IEnumerable<IEnumerable<XmlElement>> faultAlternatives = this.GetPolicyAlternatives(wsdlFaultBinding, bindingWsdl);
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
60public WSSecurityTokenSerializer(SecurityVersion securityVersion, bool emitBspRequiredAttributes, SamlSerializer samlSerializer, SecurityStateEncoder securityStateEncoder, IEnumerable<Type> knownTypes)
65public WSSecurityTokenSerializer(SecurityVersion securityVersion, TrustVersion trustVersion, SecureConversationVersion secureConversationVersion, bool emitBspRequiredAttributes, SamlSerializer samlSerializer, SecurityStateEncoder securityStateEncoder, IEnumerable<Type> knownTypes)
70public WSSecurityTokenSerializer(SecurityVersion securityVersion, bool emitBspRequiredAttributes, SamlSerializer samlSerializer, SecurityStateEncoder securityStateEncoder, IEnumerable<Type> knownTypes,
76public WSSecurityTokenSerializer(SecurityVersion securityVersion, TrustVersion trustVersion, SecureConversationVersion secureConversationVersion, bool emitBspRequiredAttributes, SamlSerializer samlSerializer, SecurityStateEncoder securityStateEncoder, IEnumerable<Type> knownTypes,
System\ServiceModel\Security\WsSecurityTokenSerializerAdapter.cs (2)
70public WsSecurityTokenSerializerAdapter( SecurityTokenHandlerCollection securityTokenHandlerCollection, SecurityVersion securityVersion, bool emitBspAttributes, SamlSerializer samlSerializer, SecurityStateEncoder stateEncoder, IEnumerable<Type> knownTypes )
89public WsSecurityTokenSerializerAdapter( SecurityTokenHandlerCollection securityTokenHandlerCollection, SecurityVersion securityVersion, TrustVersion trustVersion, SecureConversationVersion secureConversationVersion, bool emitBspAttributes, SamlSerializer samlSerializer, SecurityStateEncoder stateEncoder, IEnumerable<Type> knownTypes )