171 references to Enumerable
System.Activities (1)
System\Activities\Debugger\DebugInfo.cs (1)
658
return
Enumerable
.Empty<NamespaceDeclaration>();
System.Core (89)
System\Linq\Enumerable.cs (84)
1497
return
Enumerable
.Sum(
Enumerable
.Select(source, selector));
1501
return
Enumerable
.Sum(
Enumerable
.Select(source, selector));
1505
return
Enumerable
.Sum(
Enumerable
.Select(source, selector));
1509
return
Enumerable
.Sum(
Enumerable
.Select(source, selector));
1513
return
Enumerable
.Sum(
Enumerable
.Select(source, selector));
1517
return
Enumerable
.Sum(
Enumerable
.Select(source, selector));
1521
return
Enumerable
.Sum(
Enumerable
.Select(source, selector));
1525
return
Enumerable
.Sum(
Enumerable
.Select(source, selector));
1529
return
Enumerable
.Sum(
Enumerable
.Select(source, selector));
1533
return
Enumerable
.Sum(
Enumerable
.Select(source, selector));
1704
return
Enumerable
.Min(
Enumerable
.Select(source, selector));
1708
return
Enumerable
.Min(
Enumerable
.Select(source, selector));
1712
return
Enumerable
.Min(
Enumerable
.Select(source, selector));
1716
return
Enumerable
.Min(
Enumerable
.Select(source, selector));
1720
return
Enumerable
.Min(
Enumerable
.Select(source, selector));
1724
return
Enumerable
.Min(
Enumerable
.Select(source, selector));
1728
return
Enumerable
.Min(
Enumerable
.Select(source, selector));
1732
return
Enumerable
.Min(
Enumerable
.Select(source, selector));
1736
return
Enumerable
.Min(
Enumerable
.Select(source, selector));
1740
return
Enumerable
.Min(
Enumerable
.Select(source, selector));
1744
return
Enumerable
.Min(
Enumerable
.Select(source, selector));
1908
return
Enumerable
.Max(
Enumerable
.Select(source, selector));
1912
return
Enumerable
.Max(
Enumerable
.Select(source, selector));
1916
return
Enumerable
.Max(
Enumerable
.Select(source, selector));
1920
return
Enumerable
.Max(
Enumerable
.Select(source, selector));
1924
return
Enumerable
.Max(
Enumerable
.Select(source, selector));
1928
return
Enumerable
.Max(
Enumerable
.Select(source, selector));
1932
return
Enumerable
.Max(
Enumerable
.Select(source, selector));
1936
return
Enumerable
.Max(
Enumerable
.Select(source, selector));
1940
return
Enumerable
.Max(
Enumerable
.Select(source, selector));
1944
return
Enumerable
.Max(
Enumerable
.Select(source, selector));
1948
return
Enumerable
.Max(
Enumerable
.Select(source, selector));
2102
return
Enumerable
.Average(
Enumerable
.Select(source, selector));
2106
return
Enumerable
.Average(
Enumerable
.Select(source, selector));
2110
return
Enumerable
.Average(
Enumerable
.Select(source, selector));
2114
return
Enumerable
.Average(
Enumerable
.Select(source, selector));
2118
return
Enumerable
.Average(
Enumerable
.Select(source, selector));
2122
return
Enumerable
.Average(
Enumerable
.Select(source, selector));
2126
return
Enumerable
.Average(
Enumerable
.Select(source, selector));
2130
return
Enumerable
.Average(
Enumerable
.Select(source, selector));
2134
return
Enumerable
.Average(
Enumerable
.Select(source, selector));
2138
return
Enumerable
.Average(
Enumerable
.Select(source, selector));
System\Linq\Parallel\Utils\Lookup.cs (2)
79
return
Enumerable
.Empty<TElement>();
89
return
Enumerable
.Empty<TElement>();
System\Linq\ParallelEnumerable.cs (1)
59
/// <see cref="System.Linq.
Enumerable
"/>.
System\Linq\SequenceQuery.cs (2)
315
_seqMethods = typeof(
Enumerable
).GetMethods(BindingFlags.Static|BindingFlags.Public).ToLookup(m => m.Name);
319
throw Error.NoMethodOnTypeMatchingArguments(name, typeof(
Enumerable
));
System.Data.DataSetExtensions (11)
System\Data\EnumerableRowCollectionExtensions.cs (11)
32
new EnumerableRowCollection<TRow>(source,
Enumerable
.Where<TRow>(source, predicate), null); //copy constructor
44
IEnumerable<TRow> ie =
Enumerable
.OrderBy<TRow, TKey>(source, keySelector);
59
IEnumerable<TRow> ie =
Enumerable
.OrderBy<TRow, TKey>(source, keySelector, comparer);
72
IEnumerable<TRow> ie =
Enumerable
.OrderByDescending<TRow, TKey>(source, keySelector);
87
IEnumerable<TRow> ie =
Enumerable
.OrderByDescending<TRow, TKey>(source, keySelector, comparer);
102
Enumerable
.ThenBy<TRow, TKey>((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector);
120
Enumerable
.ThenBy<TRow, TKey>((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector, comparer);
137
Enumerable
.ThenByDescending<TRow, TKey>((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector);
155
Enumerable
.ThenByDescending<TRow, TKey>((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector, comparer);
176
IEnumerable<S> typedEnumerable =
Enumerable
.Select<TRow, S>(source, selector);
201
IEnumerable<TResult> typedEnumerable =
Enumerable
.Cast<TResult>(source);
System.Data.Entity (35)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
755
result = CqtBuilder.New(newType, System.Linq.
Enumerable
.ToArray(newArguments));
System\Data\Common\CommandTrees\ExpressionBuilder\EdmFunctions.cs (1)
31
System.Linq.
Enumerable
.Where(
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
344
Dump(System.Linq.
Enumerable
.Cast<DbExpression>(lambda.Variables), "Variables", "Variable");
System\Data\Common\Utils\Set.cs (1)
78
elements ??
Enumerable
.Empty<TElement>(),
System\Data\Mapping\StorageEntityContainerMapping.cs (1)
203
return System.Linq.
Enumerable
.Concat(this.m_entitySetMappings.Values, this.m_associationSetMappings.Values);
System\Data\Mapping\StorageMappingItemLoader.cs (2)
2106
Enumerable
.Empty<EntityType>(),
2108
Enumerable
.Empty<FunctionImportEntityTypeMappingCondition>(),
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
273
return
Enumerable
.Empty<int>();
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (1)
110
return
Enumerable
.Empty<int>();
System\Data\Mapping\Update\Internal\Graph.cs (1)
198
remainder =
Enumerable
.Empty<TVertex>();
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
463
return
Enumerable
.Empty<IEntityStateEntry>();
System\Data\Mapping\Update\Internal\ViewLoader.cs (1)
319
requiredEnds.AddRange(set,
Enumerable
.Empty<AssociationEndMember>());
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (1)
83
: this(viewTarget, attrs, fragmentQuery, leftCellQuery, rightCellQuery, memberMaps,
Enumerable
.Repeat(inputCell, 1)) { }
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (2)
55
: this(extent,
Enumerable
.Empty<EdmMember>())
62
: this(extent,
Enumerable
.Repeat<EdmMember>(member, 1))
System\Data\Mapping\ViewGeneration\Validator.cs (2)
296
var cellsToReport =
Enumerable
.Union(
Enumerable
.Repeat(cell, 1), mapepdFragments);
System\Data\Mapping\ViewValidator.cs (2)
198
return
Enumerable
.Repeat((EntityType)_elementType, 1);
203
return
Enumerable
.Empty<EntityType>();
System\Data\Metadata\Edm\NavigationProperty.cs (1)
165
return
Enumerable
.Empty<EdmProperty>();
System\Data\Objects\CompiledQuery.cs (1)
576
return ObjectQueryProvider.ExecuteSingle<TResult>(
Enumerable
.Cast<TResult>(query), _query);
System\Data\Objects\DataClasses\EntityCollection.cs (1)
299
:
Enumerable
.Empty<TEntity>(), mergeOption, true /*setIsLoaded*/);
System\Data\Objects\ELinq\Funcletizer.cs (1)
613
_compiledQueryParameters = compiledQueryParameters ??
Enumerable
.Empty<ParameterExpression>();
System\Data\Objects\ELinq\InitializerFacet.cs (1)
322
foreach (var member in _newExpression.Members ??
Enumerable
.Empty<MemberInfo>())
System\Data\Objects\ELinq\ObjectQueryProvider.cs (5)
129
IEnumerable<object> objQuery =
Enumerable
.Cast<object>(query);
203
return (sequence) => { return
Enumerable
.First(sequence); };
207
return (sequence) => { return
Enumerable
.FirstOrDefault(sequence); };
211
return (sequence) => { return
Enumerable
.SingleOrDefault(sequence); };
215
return (sequence) => { return
Enumerable
.Single(sequence); };
System\Data\Objects\ELinq\ReflectionUtil.cs (1)
499
typeof(
Enumerable
).GetMethods(BindingFlags.Static | BindingFlags.Public));
System\Data\Objects\ELinq\Translator.cs (1)
441
private GenericICollectionTranslator(Type elementType) : base(
Enumerable
.Empty<PropertyInfo>())
System\Data\Objects\ELinq\TypeSystem.cs (2)
52
inputTypes = inputTypes ??
Enumerable
.Empty<Type>();
257
Debug.Assert(
Enumerable
.Contains(propertyInfo.DeclaringType.GetInterfaces(), interfaceType), "Ensure propertyInfo.DeclaringType implements interfaceType before calling IsImplementationOf");
System\Data\Objects\ObjectStateManager.cs (1)
566
return
Enumerable
.Empty<EntityEntry>();
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
1466
return
Enumerable
.Empty<md.EdmProperty>();
System.Data.Entity.Design (2)
System\Data\Entity\Design\EntityCodeGenerator.cs (2)
419
IList<EdmSchemaError> errors = generator.GenerateCode(sourceEdmSchemaFilePath, target, additionalEdmSchemaFilePaths != null ? additionalEdmSchemaFilePaths :
Enumerable
.Empty<string>());
557
typeof(System.Linq.
Enumerable
).Assembly.Location, // System.Core.dll
System.Data.Linq (18)
ChangeProcessor.cs (1)
578
var range =
Enumerable
.Range(0, objects.Count).ToList();
DataServices.cs (3)
241
thisSource = Expression.Call(typeof(
Enumerable
), "Cast", new Type[] { association.ThisMember.DeclaringType.Type }, thisSource);
243
Expression thisInstance = Expression.Call(typeof(
Enumerable
), "FirstOrDefault", new Type[] { association.ThisMember.DeclaringType.Type },
248
otherSource = Expression.Call(typeof(
Enumerable
), "Cast", new Type[] { association.OtherType.Type }, otherSource);
SqlClient\Common\TypeSystem.cs (1)
121
_sequenceMethods = typeof(
Enumerable
).GetMethods(BindingFlags.Static | BindingFlags.Public).ToLookup(m => m.Name);
SqlClient\Query\QueryConverter.cs (6)
598
typeof(
Enumerable
), "Select",
2015
if (declType == typeof(System.Linq.
Enumerable
) ||
2578
seq = Expression.Call(typeof(
Enumerable
), "Where", new Type[] { rowType }, seq, findPredicate);
2616
seq = Expression.Call(typeof(
Enumerable
), "Where", new Type[] { rowType }, seq, idPredicate);
2617
seq = Expression.Call(typeof(
Enumerable
), "Select", new Type[] { rowType, resultSelector.Body.Type }, seq, resultSelector);
2657
Expression seq = Expression.Call(typeof(
Enumerable
), "Where", new Type[] { rowType }, source, findPredicate);
SqlClient\Query\Translator.cs (2)
183
Expression sequenceExpression = Expression.Call(typeof(
Enumerable
), "Where", new Type[] {p.Type}, source, Expression.Lambda(whereExpression, p));
232
return Expression.Call(typeof(
Enumerable
), "Count", new Type[] {TypeSystem.GetElementType(exp.Type)}, exp);
SqlClient\SqlProvider.cs (2)
1062
mce.Method.DeclaringType == typeof(
Enumerable
))
1349
mce.Method.DeclaringType == typeof(
Enumerable
)) {
SubqueryRules.cs (1)
33
if (declType == typeof(System.Linq.
Enumerable
) ||
Types.cs (2)
71
this.underlyingValue =
Enumerable
.SingleOrDefault(this.source);
109
this.entity =
Enumerable
.SingleOrDefault(src);
System.Data.Services (5)
System\Data\Services\Providers\BasicExpandProvider.cs (5)
571
private static readonly MethodInfo SelectMethodInfoEnumerable = typeof(
Enumerable
)
576
private static readonly MethodInfo WhereMethodInfoEnumerable = typeof(
Enumerable
)
581
private static readonly MethodInfo TakeMethodInfoEnumerable = typeof(
Enumerable
)
1755
typeof(
Enumerable
),
1766
typeof(
Enumerable
),
System.Data.Services.Client (2)
System\Data\Services\Client\ALinq\ReflectionUtil.cs (1)
511
typeof(
Enumerable
).GetMethods(BindingFlags.Static | BindingFlags.Public));
System\Data\Services\Client\AtomParser.cs (1)
720
property.Feed.Entries =
Enumerable
.Empty<AtomEntry>();
System.Web (3)
Compilation\BuildManager.cs (1)
2581
excludedVirtualPaths = excludedVirtualPaths ??
Enumerable
.Empty<string>();
ModelBinding\ValidatableObjectAdapter.cs (1)
19
return
Enumerable
.Empty<ModelValidationResult>();
Security\AntiXss\CodeCharts\CodeChartHelper.cs (1)
17
var range =
Enumerable
.Range(min, (max - min + 1));
System.Web.Extensions (3)
Compilation\WCFModel\MapFile.cs (1)
34
return _loadErrors != null ? _loadErrors :
Enumerable
.Empty<ProxyGenerationError>();
UI\WebControls\Dynamic.cs (1)
1250
return Expression.Call(typeof(
Enumerable
), signature.Name, typeArgs, args);
UI\WebControls\QueryableDataSourceHelper.cs (1)
66
MethodInfo toListMethod = typeof(
Enumerable
).GetMethod("ToList").MakeGenericMethod(dataObjectType);
System.Xml.Linq (2)
System\Xml\Linq\XComponentModel.cs (1)
429
return
Enumerable
.Empty<T>();
System\Xml\Linq\XLinq.cs (1)
7752
return
Enumerable
.OrderBy(source, n => (XNode)n, XNode.DocumentOrderComparer);