177 references to ToList
System.Activities (9)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (3)
136hcompilerWrapper = new HostedCompilerWrapper(new HostedCompiler(assemblySet.ToList())); 337this.referencedAssemblies.ToList<Assembly>()); 496this.referencedAssemblies.ToList<Assembly>());
System\Activities\DynamicUpdate\ActivityComparer.cs (2)
120return collection.Where(a => a.Parent == parent).ToList(); 125return collection.Where(d => d.Owner == parentActivity).ToList();
System\Activities\DynamicUpdate\ArgumentInfo.cs (1)
184return (from r in activity.RuntimeArguments select new ArgumentInfo(r)).ToList();
System\Activities\Validation\ValidationHelper.cs (2)
116List<RuntimeArgument> exceptList = overloadGroupSet.Except(intersectSet).ToList(); 214IList<string> sortedList = entry.Value.OrderBy((s) => s, StringComparer.Ordinal).ToList();
System\Activities\XamlIntegration\SerializableFuncDeferringLoader.cs (1)
23factory.ParentNamespaces = nsResolver.GetNamespacePrefixes().ToList();
System.Activities.Core.Presentation (5)
System\Activities\Core\Presentation\CaseKeyBox.ViewModel.cs (1)
189this.ComboBoxItems = new ObservableCollection<string>(Enum.GetNames(this.ValueType).ToList());
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (3)
94candidateDestConnPoints = freeDestConnPoints.ToList(); 103candidateDestConnPoints = availablePoints.Any() ? availablePoints.ToList() : destConnPoints; 231return attachedConnectors.ToList<Connector>();
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
209return attachedConnectors.ToList<Connector>();
System.Activities.Presentation (13)
System.Activities.Presentation\System\Activities\Presentation\BookmarkUndoUnit.cs (2)
43this.DoList = this.RedoList.Reverse<UndoUnit>().ToList(); 62this.RedoList = this.DoList.Reverse<UndoUnit>().ToList();
System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (2)
641List<KeyValuePair<object, SourceLocation>> unresolvedEntries = this.instanceToSourceLocationMapping.Where(entry => IsUnresolved(entry.Value)).ToList(); 732List<KeyValuePair<ModelItem, SourceLocation>> resolvedEntries = this.modelItemToSourceLocation.Where(entry => !IsUnresolved(entry.Value)).ToList();
System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (2)
90return new ReadOnlyCollection<ModelItem>(this.itemsAdded.ToList()); 98return new ReadOnlyCollection<ModelItem>(this.itemsRemoved.ToList());
System.Activities.Presentation\System\Activities\Presentation\Model\MorphHelper.cs (2)
74foreach (ModelItemCollection collectionParent in collectionParents.ToList()) 80foreach (ModelProperty modelProperty in oldModelItem.Sources.ToList())
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
958var scope1List = scope1.GetParentEnumerator().Where(p => null != VariableHelper.GetVariableCollection(p)).ToList(); 959var scope2List = scope2.GetParentEnumerator().Where(p => null != VariableHelper.GetVariableCollection(p)).ToList();
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (3)
286IList<ModelItem> selectedItems = this.Context.Items.GetValue<Selection>().SelectedObjects.ToList(); 455return sortedList.Select((m) => m.GetCurrentValue()).ToList(); 819List<object> orderMetaData = GetOrderMetaData(itemsToCut).ToList();
System.Data (15)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\BookmarkUndoUnit.cs (2)
43this.DoList = this.RedoList.Reverse<UndoUnit>().ToList(); 62this.RedoList = this.DoList.Reverse<UndoUnit>().ToList();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (2)
641List<KeyValuePair<object, SourceLocation>> unresolvedEntries = this.instanceToSourceLocationMapping.Where(entry => IsUnresolved(entry.Value)).ToList(); 732List<KeyValuePair<ModelItem, SourceLocation>> resolvedEntries = this.modelItemToSourceLocation.Where(entry => !IsUnresolved(entry.Value)).ToList();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\EditingScope.cs (2)
90return new ReadOnlyCollection<ModelItem>(this.itemsAdded.ToList()); 98return new ReadOnlyCollection<ModelItem>(this.itemsRemoved.ToList());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\MorphHelper.cs (2)
74foreach (ModelItemCollection collectionParent in collectionParents.ToList()) 80foreach (ModelProperty modelProperty in oldModelItem.Sources.ToList())
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
958var scope1List = scope1.GetParentEnumerator().Where(p => null != VariableHelper.GetVariableCollection(p)).ToList(); 959var scope2List = scope2.GetParentEnumerator().Where(p => null != VariableHelper.GetVariableCollection(p)).ToList();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (3)
286IList<ModelItem> selectedItems = this.Context.Items.GetValue<Selection>().SelectedObjects.ToList(); 455return sortedList.Select((m) => m.GetCurrentValue()).ToList(); 819List<object> orderMetaData = GetOrderMetaData(itemsToCut).ToList();
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
250return providerNames.ToList(); 261return providerNames.ToList();
System.Data.Entity (54)
System\Data\Common\CommandTrees\DbQueryCommandTree.cs (1)
48this._parameters = validator.Parameters.Select(paramInfo => paramInfo.Value).ToList().AsReadOnly();
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (2)
974var boundKeys = groupOutput.Properties.Take(newKeys.Count).Select(p => p.Name).Zip(newKeys).ToList(); 975var boundAggs = groupOutput.Properties.Skip(newKeys.Count).Select(p => p.Name).Zip(newAggs).ToList();
System\Data\Common\CommandTrees\Internal\DbExpressionRules.cs (2)
115List<DbExpressionRule> currentRules = this.GetRules().ToList(); 119currentRules = this.GetRules().ToList();
System\Data\Common\CommandTrees\Internal\ParameterRetriever.cs (1)
35return retriever.paramMappings.Values.ToList().AsReadOnly();
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (7)
131.ToList(); 226.Select(psdt => RelatedEntityRefFromAssociationSetEnd(constructedEntityType, entityConstructor, psdt.Item2, psdt.Item3)).ToList(); 232relatedRefs = entityConstructor.RelatedEntityReferences.Concat(relatedRefs).ToList(); 317principalKeyValues = principalEntityType.KeyMemberNames.Select(memberName => keyValueMap[memberName]).ToList(); 420List<DbExpression> predicates = FlattenOr(booleanColumnFilter.Predicate).ToList(); 424((DbVariableReferenceExpression)px.Instance).VariableName == booleanColumnFilter.Input.VariableName).ToList(); 430List<string> predicateColumnNames = propertyPredicates.Select(px => px.Property.Name).ToList();
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
1512argTypes = convertedArgs.Select(a => a != null ? a.ResultType : null).ToList(); 2659var resultTypes = thenExprList.Where(e => e != null).Select(e => e.ResultType).ToList();
System\Data\EntityModel\SchemaObjectModel\PrimitiveSchema.cs (1)
43.ToList();
System\Data\Mapping\FunctionImportMapping.cs (3)
80.ToList() 87.ToList() 530this.ColumnConditions = new OM.ReadOnlyCollection<FunctionImportEntityTypeMappingCondition>(columnConditions.ToList());
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (3)
43EntityUtil.CheckArgumentNull(isOfTypeEntityTypes, "isOfTypeEntityTypes").ToList()); 45EntityUtil.CheckArgumentNull(entityTypes, "entityTypes").ToList()); 47EntityUtil.CheckArgumentNull(conditions, "conditions").ToList());
System\Data\Mapping\FunctionImportMappingComposable.cs (1)
311List<DbExpression> structuralTypePredicates = m_structuralTypeMappings.Select(m => GenerateStructuralTypeConditionsPredicate(m.Item2, binding.Variable)).ToList();
System\Data\Mapping\StorageEntityContainerMapping.cs (1)
460result.CellGroups = cellGroups.Select(setOfcells => new CellGroup(setOfcells.Select(cell => new Cell(cell)))).ToList();
System\Data\Mapping\StorageMappingItemCollection.cs (1)
508return new ReadOnlyCollection<EdmMember>(interestingMembers.Distinct().ToList());
System\Data\Mapping\StorageModificationFunctionMapping.cs (3)
143.ToList().AsReadOnly(); 146List<StorageModificationFunctionResultBinding> bindings = resultBindings.ToList(); 153.ToList()
System\Data\Mapping\StorageSetMapping.cs (1)
238return new ReadOnlyCollection<Triple>(m_typeSpecificQueryViews.Keys.ToList());
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (2)
118command = new FunctionUpdateCommand(functionMapping, translator, stateEntries.ToList().AsReadOnly(), stateEntry); 318FunctionUpdateCommand command = new FunctionUpdateCommand(functionMapping, translator, new [] { stateEntry.Source }.ToList().AsReadOnly(), stateEntry);
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (2)
67this.PropertyMap = propertyMap.ToList().AsReadOnly(); 68this.RelPropertyMap = relPropertyMap.ToList().AsReadOnly();
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (2)
438List<MemberPath> nonConditionalAttributes = GetNonConditionalScalarMembers(edmType, currentPath, _domainMap).Union(GetNonConditionalComplexMembers(edmType, currentPath, _domainMap)).ToList(); 506List<Constant> domain = GetDomain(currentPath).ToList();
System\Data\Mapping\ViewGeneration\Structures\CellTreeNode.cs (1)
116return GetLeafNodes().Select(leafNode => leafNode.LeftCellWrapper).ToList();
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (1)
48m_path = path.ToList();
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (1)
110List<DbExpression> operands = domainValues.Select(c => (DbExpression)cqt.Equal(c.AsCqt(row, this.RestrictedMemberSlot.MemberPath))).ToList();
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (1)
149List<DbExpression> operands = this.Domain.Values.Select(t => (DbExpression)cqt.IsOfOnly(TypeUsage.Create(((TypeConstant)t).EdmType))).ToList();
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (1)
96List<CellGroup> cellGroups = cellGroups = result.CellGroups.Select(setOfcells => new CellGroup(setOfcells.Select(cell => new Cell(cell)))).ToList();
System\Data\Metadata\Edm\EdmFunction.cs (1)
40.ToList());
System\Data\Metadata\EdmItemCollection.cs (1)
387return _primitiveTypeMaps.GetTypes().Where(type => !Helper.IsSpatialType(type)).ToList().AsReadOnly();
System\Data\Metadata\MappingMetadataHelper.cs (1)
52).ToList();
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (1)
218Funcletizer funcletizer = Funcletizer.CreateCompiledQueryEvaluationFuncletizer(this.ObjectContext, lambda.Parameters.First(), lambda.Parameters.Skip(1).ToList().AsReadOnly());
System\Data\Objects\ELinq\InitializerFacet.cs (1)
153List<Expression> propertyReaders = propertyTranslatorResults.Select(s => s.UnwrappedExpression).ToList();
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
606var arguments = call.Arguments.Select(a => UnwrapNoOpConverts(a)).Select(b => NormalizeAllSetSources(parent, parent.TranslateExpression(b))).ToList(); 607var argumentTypes = arguments.Select(a => a.ResultType).ToList();
System\Data\Objects\ObjectStateManager.cs (1)
564return foundEntries.ToList();
System\Data\Query\InternalTrees\ExplicitDiscriminatorMap.cs (1)
36.ToList().AsReadOnly();
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1862typeFilter.ToEnumerable().Select(tf => tf.Value ? resultBinding.Variable.IsOfOnly(tf.Key) : resultBinding.Variable.IsOf(tf.Key)).ToList()
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
1453typeInfo.FlattenedType.Properties.ToList<md.EdmProperty>());
System\Data\Query\PlanCompiler\ProjectionPruner.cs (1)
533&& PlanCompilerUtil.IsConstantBaseOp(d.Child0.Op.OpType)).ToList();
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
549paramsToForceNonUnicode = new HashSet<string>(_candidateParametersToForceNonUnicode.Where(p => p.Value).Select(q => q.Key).ToList());
System\Data\SqlClient\SqlProviderManifest.cs (1)
229this._functions = functions.ToList().AsReadOnly();
System.Data.Entity.Design (8)
System\Data\Entity\Design\EntityCodeGenerator.cs (4)
96targetFrameworkVersion)).ToList(); 133return errors.Concat(GenerateCode(sourceEdmSchemaFilePath, targetPath, targetFrameworkVersion)).ToList(); 181return errors.Concat(GenerateCode(sourceEdmSchema, target, targetFrameworkVersion)).ToList(); 242return errors.Concat(GenerateCode(sourceEdmSchema, target, additionalEdmSchemas, targetFrameworkVersion)).ToList();
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (1)
1221primaryKeys = primaryKeys.Except(excludedKeyColumns).ToList();
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (3)
137return GenerateViews(mappingCollection, outputWriter, targetEntityFrameworkVersion).Concat(errorList).ToList(); 211return Validate(mappingCollection, targetEntityFrameworkVersion).Concat(errorList).ToList(); 270return schemaErrors.Except(warningsToRemove).ToList();
System.Data.Linq (29)
ChangeProcessor.cs (3)
575var objects = this.tracker.GetInterestingObjects().ToList(); 578var range = Enumerable.Range(0, objects.Count).ToList(); 580var ordered = range.Select(i => objects[i]).ToList();
DataBindingList.cs (2)
13List<T> list = sequence.ToList(); 90this.data.DeleteAllOnSubmit(this.data.ToList());
DataContext.cs (7)
601var list = entities.Cast<object>().ToList(); 1265List<TSubEntity> list = entities.ToList(); 1278List<object> list = entities.Cast<object>().ToList(); 1351List<TSubEntity> list = entities.ToList(); 1364List<object> list = entities.Cast<object>().ToList(); 1544List<TSubEntity> list = entities.ToList(); 1557List<object> list = entities.Cast<object>().ToList();
Mapping\AttributedMetaModel.cs (6)
310return this.metaFunctions.Values.ToList().AsReadOnly(); 450this.inheritanceTypes = this.types.Values.ToList().AsReadOnly(); 453this.inheritanceTypes = new MetaType[] { this }.ToList().AsReadOnly(); 559this.identities = this.dataMembers.Where(m => m.IsPrimaryKey).ToList().AsReadOnly(); 560this.persistentMembers = this.dataMembers.Where(m => m.IsPersistent).ToList().AsReadOnly(); 801this.associations = this.dataMembers.Where(m => m.IsAssociation).Select(m => m.Association).ToList().AsReadOnly();
Mapping\MappedMetaModel.cs (6)
446this.inheritanceTypes = this.derivedTypes.Values.ToList().AsReadOnly(); 449this.inheritanceTypes = new MetaType[] { this }.ToList().AsReadOnly(); 597this.identities = this.dataMembers.Where(m => m.IsPrimaryKey).ToList().AsReadOnly(); 598this.persistentDataMembers = this.dataMembers.Where(m => m.IsPersistent).ToList().AsReadOnly(); 881this.associations = this.dataMembers.Where(m => m.IsAssociation).Select(m => m.Association).ToList().AsReadOnly(); 1582this.inheritanceTypes = new MetaType[] { this }.ToList().AsReadOnly();
SqlClient\Query\QueryConverter.cs (1)
1788List<SqlExpression> list = values.OfType<object>().Select(v => sql.ValueFromObject(v, elemType, true, this.dominatingExpression)).ToList();
SqlClient\Query\SqlReorderer.cs (1)
195this.orders = new HashSet<SqlOrderExpression>(this.orders).ToList();
SqlClient\Query\Translator.cs (1)
512List<MetaDataMember> members = GetIdentityMembers(type).ToList();
Types.cs (2)
238collection = collection.ToList(); 659return new EntitySetBindingList<TEntity>(this.ToList(), this);
System.Data.Services (4)
System\Data\Services\Providers\ExpandedProjectionNode.cs (1)
386existingNodes.Where(node => node.Property == null).ToList();
System\Data\Services\Providers\ResourceType.cs (3)
321List<ResourceProperty> key = rootType.Properties.Where(p => p.IsOfKind(ResourcePropertyKind.Key)).ToList(); 351ReadOnlyCollection<ResourceProperty> etag = new ReadOnlyCollection<ResourceProperty>(this.Properties.Where(p => p.IsOfKind(ResourcePropertyKind.ETag)).ToList()); 1135foreach (EntityPropertyMappingAttribute epmAttr in currentResourceType.AllEpmInfo.ToList())
System.Data.Services.Client (19)
System\Data\Services\Client\ALinq\NavigationPropertySingletonExpression.cs (1)
110this.ExpandPaths.ToList(),
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (2)
225resource.Projection = new ProjectionQueryOptionExpression(lambda.Body.Type, lambda, pb.ProjectionPaths.ToList()); 226resource.ExpandPaths = pb.ExpandPaths.Union(resource.ExpandPaths, StringComparer.Ordinal).ToList();
System\Data\Services\Client\ALinq\ResourceBinder.cs (3)
888re.ExpandPaths = re.ExpandPaths.Union(new string[] { (string) value.Value }, StringComparer.Ordinal).ToList(); 939ResourceSetExpression newResource = new ResourceSetExpression(expressionType, source, memberExpression, resourceType, source.ExpandPaths.ToList(), source.CountOption, source.CustomQueryOptions.ToDictionary(kvp => kvp.Key, kvp => kvp.Value), null); 948NavigationPropertySingletonExpression newResource = new NavigationPropertySingletonExpression(type, source, memberExpression, memberExpression.Type, source.ExpandPaths.ToList(), source.CountOption, source.CustomQueryOptions.ToDictionary(kvp => kvp.Key, kvp => kvp.Value), null);
System\Data\Services\Client\ALinq\ResourceSetExpression.cs (2)
196get { return this.sequenceQueryOptions.ToList(); } 219this.ExpandPaths.ToList(),
System\Data\Services\Client\ALinq\UriWriter.cs (2)
517List<ConstantExpression> keys = options.Keys.ToList(); 518List<ConstantExpression> values = options.Values.ToList();
System\Data\Services\Client\Binding\BindingGraph.cs (5)
284foreach (Edge collectionEdge in collectionVertex.OutgoingEdges.ToList()) 342foreach (Edge collectionEdge in collectionVertex.OutgoingEdges.ToList()) 611foreach (Edge e in v.OutgoingEdges.Concat(v.IncomingEdges).ToList()) 693return this.vertices.Keys.Where(filter).ToList(); 763return this.vertices.Values.Where(v => v.Color == VertexColor.White).ToList();
System\Data\Services\Client\DataServiceContext.cs (4)
403return this.bindings.Values.OrderBy(l => l.ChangeOrder).ToList().AsReadOnly(); 415return this.entityDescriptors.Values.OrderBy(d => d.ChangeOrder).ToList().AsReadOnly(); 2619foreach (LinkDescriptor end in this.bindings.Values.Where(resource.IsRelatedEntity).ToList()) 4149.ToList();
System.ServiceModel (1)
System\ServiceModel\Diagnostics\PerformanceCountersBase.cs (1)
170foreach (var entry in this.cache.Where(pair => !pair.Value.IsAlive).ToList())
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (1)
146return this.instanceCache.Values.ToList();
System.Web (6)
Abstractions\HttpFileCollectionWrapper.cs (1)
96return files.Select(f => (HttpPostedFileBase)new HttpPostedFileWrapper(f)).ToList().AsReadOnly();
Compilation\BuildManager.cs (2)
871.ToList(); 2582_excludedCompilationPaths = excludedVirtualPaths.Select(path => VirtualPath.Create(UrlPath.Combine("~", path))).ToList();
ModelBinding\ComplexModel.cs (1)
19PropertyMetadata = new ReadOnlyCollection<ModelMetadata>(propertyMetadata.ToList());
ModelBinding\ModelValidationNode.cs (1)
22ChildNodes = (childNodes != null) ? childNodes.ToList() : new List<ModelValidationNode>();
Routing\HttpMethodConstraint.cs (1)
16AllowedMethods = allowedMethods.ToList().AsReadOnly();
System.Web.DynamicData (9)
DynamicData\DynamicRouteExpression.cs (1)
42parameters.ToList().ForEach(p => _expression.Parameters.Add(p));
DynamicData\MetaModel.cs (3)
395return Tables.Where(IsTableVisible).OrderBy(t => t.DisplayName).ToList(); 653return Tables.OfType<IMetaTable>().ToList().AsReadOnly(); 679return VisibleTables.OfType<IMetaTable>().ToList();
DynamicData\MetaTable.cs (4)
223_primaryKeyColumns = Columns.Where(c => c.IsPrimaryKey).ToList().AsReadOnly(); 578var serverSideColumns = Columns.Where(c => !c.IsCustomProperty).ToList(); 1032return Columns.OfType<IMetaColumn>().ToList().AsReadOnly(); 1064return PrimaryKeyColumns.OfType<IMetaColumn>().ToList().AsReadOnly();
DynamicData\ModelProviders\SimpleTableProvider.cs (1)
54_columns = columnDescriptors.OfType<PropertyDescriptor>().Select(p => new SimpleColumnProvider(this, p)).OfType<ColumnProvider>().ToList();
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
952ReadOnlyCollection<EdmMember> result = interestingMembers.ToList().AsReadOnly();
XamlBuildTask (3)
Microsoft\Build\Tasks\Xaml\CompilationPass2Task.cs (1)
252.Select(i => new DelegatingTaskItem(i) as ITaskItem).ToList();
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTask.cs (2)
338.Select(i => new DelegatingTaskItem(i) as ITaskItem).ToList(); 345.Select(i => new DelegatingTaskItem(i) as ITaskItem).ToList();