424 references to List
mscorlib (21)
system\AggregateException.cs (2)
121
: this(message, innerExceptions as IList<Exception> ?? (innerExceptions == null ? (List<Exception>)null : new
List
<Exception>(innerExceptions)))
210
new
List
<ExceptionDispatchInfo>(innerExceptionInfos)))
system\diagnostics\eventing\eventsource.cs (3)
6397
var sortedTasks = new
List
<int>(taskTab.Keys);
6450
var sortedOpcodes = new
List
<int>(opcodeTab.Keys);
6464
var sortedKeywords = new
List
<ulong>(keywordTab.Keys);
system\io\directory.cs (1)
834
List<String> fileList = new
List
<String>(enble);
system\io\directoryinfo.cs (3)
366
List<FileInfo> fileList = new
List
<FileInfo>(enble);
424
List<FileSystemInfo> fileList = new
List
<FileSystemInfo>(enble);
478
List<DirectoryInfo> fileList = new
List
<DirectoryInfo>(enble);
system\reflection\emit\assemblybuilder.cs (1)
374
assemblyAttributes = new
List
<CustomAttributeBuilder>(unsafeAssemblyAttributes);
system\reflection\emit\methodbuilder.cs (1)
1033
return new
List
<T>(sequence).ToArray();
system\runtime\designerservices\windowsruntimedesignercontext.cs (1)
31
List<string> pathList = new
List
<string>(paths);
system\runtime\interopservices\windowsruntime\windowsruntimemetadata.cs (1)
41
List<string> packageGraphFilePathsList = new
List
<string>(packageGraphFilePaths);
system\security\policy\evidence.cs (4)
892
foreach (Type evidenceType in new
List
<Type>(m_evidence.Keys))
1113
return new RawEvidenceEnumerator(this, new
List
<Type>(m_evidence.Keys), false);
1123
return new RawEvidenceEnumerator(this, new
List
<Type>(m_evidence.Keys), true);
1382
foreach (Type evidenceType in new
List
<Type>(m_evidence.Keys))
system\security\policy\policystatement.cs (1)
159
copy.m_dependentEvidence = new
List
<IDelayEvaluatedEvidence>(m_dependentEvidence);
system\threading\Tasks\Task.cs (1)
6674
return new
List
<Task>(s_currentActiveTasks.Values).ToArray();
system\threading\Tasks\TaskScheduler.cs (1)
553
activeTasksArray = (new
List
<Task>(activeTasksSource)).ToArray();
system\timezoneinfo.cs (1)
956
list = new
List
<TimeZoneInfo>(cachedData.m_systemTimeZones.Values);
PresentationCore (5)
Core\CSharp\System\Windows\Input\Command\InputBindingCollection.cs (1)
390
List<InputBinding> oldInputBindings = new
List
<InputBinding>(_innerBindingList);
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (2)
521
List<IManipulator> manipulators = new
List
<IManipulator>(_manipulators);
542
List<IManipulator> manipulators = new
List
<IManipulator>(_manipulators);
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (2)
1098
_floatRegisters = new
List
<MilColorF?>(effect._floatRegisters);
1102
_samplerData = new
List
<SamplerData?>(effect._samplerData);
PresentationFramework (21)
src\Framework\MS\Internal\Annotations\AnnotationResourceCollection.cs (1)
84
List<AnnotationResource> list = new
List
<AnnotationResource>(this);
src\Framework\MS\Internal\Data\CommitManager.cs (1)
193
return new
List
<T>(Keys);
src\Framework\MS\Internal\Data\LiveShapingList.cs (1)
696
_unusedKeys = new
List
<string>(this.Keys);
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (1)
155
List<UIElement> elements = new
List
<UIElement>(inkCanvasSelection.SelectedElements);
src\Framework\MS\Internal\Ink\ElementsClipboardData.cs (1)
43
ElementList = new
List
<UIElement>(elements);
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (1)
250
_selectedElements = new
List
<UIElement>(elements);
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
682
List<Annotation> annotations = new
List
<Annotation>((IEnumerable<Annotation>)mapAnnotations.Values);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
2736
_list = new
List
<ItemInfo>(collection._list);
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (2)
47
_regions = (regions != null) ? new
List
<CellRegion>(regions) : new List<CellRegion>();
241
_regions = new
List
<CellRegion>(regions);
src\Framework\System\Windows\Data\BindingExpressionBase.cs (3)
306
list = new
List
<ValidationError>(NotifyDataErrors);
2348
toRemove = new
List
<ValidationError>(previousErrors);
2353
toRemove = new
List
<ValidationError>(previousErrors);
src\Framework\System\Windows\Ink\Events.cs (3)
157
new
List
<UIElement>(selectedElements);
198
new
List
<UIElement>(selectedElements);
351
new
List
<GestureRecognitionResult>(gestureRecognitionResults);
src\Framework\System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
78
List<string> resultList = new
List
<string>(_sharedSchemaContext.GetAllXamlNamespaces());
src\Framework\System\Windows\Shell\JumpList.cs (4)
78
RejectedItems = new
List
<JumpItem>(rejectedItems).AsReadOnly();
79
RejectionReasons = new
List
<JumpItemRejectionReason>(reasons).AsReadOnly();
105
RemovedItems = new
List
<JumpItem>(removedItems).AsReadOnly();
341
_jumpItems = new
List
<JumpItem>(items);
SMSvcHost (1)
System\ServiceModel\Activation\AppPool.cs (1)
49
return new
List
<App>(this.apps);
System (2)
compmod\system\collections\generic\sortedset.cs (2)
165
List<T> els = new
List
<T>(collection);
1270
T[] elements = (new
List
<T>(other)).ToArray();
System.Activities (8)
System\Activities\ActivityUtilities.cs (1)
1215
this.multipleItems = new
List
<ActivityInstance>(this.multipleItems);
System\Activities\Hosting\WorkflowInstanceExtensionManager.cs (1)
266
this.allSingletonExtensions = new
List
<object>(this.SingletonExtensions);
System\Activities\HybridDictionary.cs (2)
55
return new ReadOnlyCollection<TValue>(new
List
<TValue>(this.dictionary.Values));
72
return new ReadOnlyCollection<TKey>(new
List
<TKey>(this.dictionary.Keys));
System\Activities\Tracking\WorkflowInstanceUpdatedRecord.cs (2)
31
this.BlockingActivities = new
List
<ActivityBlockingUpdate>(blockingActivities).AsReadOnly();
44
this.BlockingActivities = new
List
<ActivityBlockingUpdate>(blockingActivities).AsReadOnly();
System\Activities\XamlIntegration\TextExpressionCompiler.cs (2)
2426
new
List
<AssemblyReference>(TextExpression.GetReferencesForImplementation(this.settings.Activity)) :
2427
new
List
<AssemblyReference>(TextExpression.GetReferences(this.settings.Activity));
System.Activities.Core.Presentation (9)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (1)
65
List<FlowNode> metaData = new
List
<FlowNode>(clonedFlowElements.Values);
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (5)
469
List<Point> segments = new
List
<Point>(points);
2187
List<ConnectionPoint> connectionPoints = new
List
<ConnectionPoint>(availableConnectionPoints.Where<ConnectionPoint>((p) =>
2537
connectionPoints = new
List
<ConnectionPoint>(connectionPoints.Where<ConnectionPoint>((p) =>
2556
point = this.FindClosestConnectionPointNotOfType(srcConnPoint, new
List
<ConnectionPoint>(FlowchartDesigner.GetConnectionPoints(destDesigner).Where<ConnectionPoint>(p =>
2571
point = this.FindClosestConnectionPointNotOfType(destConnPoint, new
List
<ConnectionPoint>(FlowchartDesigner.GetConnectionPoints(srcDesigner).Where<ConnectionPoint>(p =>
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
383
return new
List
<ConnectionPoint>(connectionPoints.Where<ConnectionPoint>(
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (2)
1160
List<ConnectionPoint> connectionPoints = new
List
<ConnectionPoint>(StateContainerEditor.GetConnectionPoints(designer));
1706
List<Point> segments = new
List
<Point>(points);
System.Activities.Presentation (19)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlTypeWithExplicitNamespace.cs (1)
17
this.explicitNamespaces = new
List
<string>(explicitNamespaces);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
362
List<Object> attrList = new
List
<Object>(attrs);
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (3)
186
List<ModelItem> modelItemsToCut = new
List
<ModelItem>(currentSelection.SelectedObjects);
236
List<ModelItem> modelItemsToCopy = new
List
<ModelItem>(currentSelection.SelectedObjects);
522
pasteContainer = new
List
<ICompositeView>(childrenContainers)[0];
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
626
pair.Value : view2.SortSelectedItems(new
List
<ModelItem>(pair.Value));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (1)
195
List<Point> segments = new
List
<Point>(this.editedConnector.Points);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
241
segments = RemoveRedundantPoints(new
List
<Point>(segments));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
598
List<Point> points = new
List
<Point>(pts);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (1)
542
List<ModelItem> modelItemsRemoved = new
List
<ModelItem>(this.modelItems);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
1023
List<ModelItem> items = new
List
<ModelItem>(dictionary.Keys);
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (1)
64
return new
List
<V>(_internalDictionary.Values);
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
451
validationErrors = new
List
<ValidationError>(results.Errors);
System.Activities.Presentation\System\Activities\Presentation\View\Selection.cs (3)
199
List<ModelItem> list = new
List
<ModelItem>(existing.SelectedObjects);
279
List<ModelItem> list = new
List
<ModelItem>(existing.SelectedObjects);
315
List<ModelItem> list = new
List
<ModelItem>(existing.SelectedObjects);
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
886
return new
List
<ModelItem>(variables.Values);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
453
List<ModelItem> sortedList = this.SortSelectedItems(new
List
<ModelItem>(items));
617
List<object> droppedObjects = new
List
<object>(DragDropHelper.GetDroppedObjects(this, e, Context));
System.AddIn (1)
System\Addin\Hosting\PipelineDeploymentState.cs (1)
44
_fileCounts = new
List
<int>(new int[]{0,0,0,0});
System.ComponentModel.DataAnnotations (1)
DataAnnotations\ValidationAttributeStore.cs (1)
232
List<Attribute> attributes = new
List
<Attribute>(propertyDescriptor.Attributes.Cast<Attribute>());
System.Core (5)
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
437
var list = new
List
<ParameterExpression>(vars);
Microsoft\Scripting\Utils\CollectionExtensions.cs (1)
80
return new TrueReadOnlyCollection<T>(new
List
<T>(enumerable).ToArray());
System\Diagnostics\Eventing\Reader\EventLogPropertySelector.cs (1)
55
queries = new
List
<string>(propertyQueries);
System\Linq\Enumerable.cs (1)
949
return new
List
<TSource>(source);
System\Linq\ParallelEnumerable.cs (1)
4907
return new
List
<TSource>(ToArray<TSource>(source));
System.Data (32)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlTypeWithExplicitNamespace.cs (1)
17
this.explicitNamespaces = new
List
<string>(explicitNamespaces);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
362
List<Object> attrList = new
List
<Object>(attrs);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (3)
186
List<ModelItem> modelItemsToCut = new
List
<ModelItem>(currentSelection.SelectedObjects);
236
List<ModelItem> modelItemsToCopy = new
List
<ModelItem>(currentSelection.SelectedObjects);
522
pasteContainer = new
List
<ICompositeView>(childrenContainers)[0];
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
626
pair.Value : view2.SortSelectedItems(new
List
<ModelItem>(pair.Value));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
241
segments = RemoveRedundantPoints(new
List
<Point>(segments));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
598
List<Point> points = new
List
<Point>(pts);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (1)
542
List<ModelItem> modelItemsRemoved = new
List
<ModelItem>(this.modelItems);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
1023
List<ModelItem> items = new
List
<ModelItem>(dictionary.Keys);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (1)
64
return new
List
<V>(_internalDictionary.Values);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\Selection.cs (3)
199
List<ModelItem> list = new
List
<ModelItem>(existing.SelectedObjects);
279
List<ModelItem> list = new
List
<ModelItem>(existing.SelectedObjects);
315
List<ModelItem> list = new
List
<ModelItem>(existing.SelectedObjects);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
886
return new
List
<ModelItem>(variables.Values);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
453
List<ModelItem> sortedList = this.SortSelectedItems(new
List
<ModelItem>(items));
617
List<object> droppedObjects = new
List
<object>(DragDropHelper.GetDroppedObjects(this, e, Context));
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (1)
406
_fieldMetaData = (new
List
<SmiExtendedMetaData>(fieldTypes)).AsReadOnly();
fx\src\data\Microsoft\SqlServer\Server\SmiMetaDataProperty.cs (4)
77
return new
List
<SmiMetaDataProperty>(_properties);
103
_columns = new
List
<bool>(columnIsKey).AsReadOnly();
159
_columns = new
List
<SmiColumnOrder>(columnOrders).AsReadOnly();
218
_defaults = new
List
<bool>(defaultFields).AsReadOnly();
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (1)
138
ValueUtilsSmi.FillCompatibleSettersFromReader(_eventSink, recordBuffer, new
List
<SmiExtendedMetaData>(columnMetaData), reader);
fx\src\data\System\Data\DataTable.cs (1)
4111
shadowIndexes = new
List
<Index>(indexes);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (7)
1127
props[MSS.SmiPropertySelector.UniqueKey] = new MSS.SmiUniqueKeyProperty(new
List
<bool>(keyCols));
1131
fields = new
List
<MSS.SmiExtendedMetaData>(((SqlDataReader)value).GetInternalSmiMetaData());
1149
props[MSS.SmiPropertySelector.UniqueKey] = new MSS.SmiUniqueKeyProperty(new
List
<bool>(keyCols));
1210
props[MSS.SmiPropertySelector.UniqueKey] = new MSS.SmiUniqueKeyProperty(new
List
<bool>(keyCols));
1219
props[MSS.SmiPropertySelector.DefaultFields] = new MSS.SmiDefaultFieldsProperty(new
List
<bool>(defaultFields));
1244
new
List
<SmiOrderProperty.SmiColumnOrder>(sort));
1342
props[MSS.SmiPropertySelector.UniqueKey] = new MSS.SmiUniqueKeyProperty(new
List
<bool>(keyCols));
fx\src\data\System\Data\XMLSchema.cs (1)
2483
this.namespacesToIgnore = new
List
<string>(namespacesToIgnore);
System.Data.DataSetExtensions (2)
System\Data\EnumerableRowCollection.cs (1)
130
_listOfPredicates = new
List
<Func<TRow, bool>>(source._listOfPredicates);
System\Data\LinqDataView.cs (1)
221
new
List
<object>(key));
System.Data.Entity (75)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
238
newList = new
List
<TElement>(list);
System\Data\Common\CommandTrees\ExpressionBuilder\EdmFunctions.cs (1)
30
List<EdmFunction> functions = new
List
<EdmFunction>(
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (1)
144
mappedPropInfo = new
List
<KeyValuePair<string, TypeUsage>>(
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
483
DbExpression newDiscriminatorPredicate = Helpers.BuildBalancedTreeInPlace<DbExpression>(new
List
<DbExpression>(inputPredicateMap.Values), (left, right) => DbExpressionBuilder.Or(left, right));
System\Data\Common\EntitySql\SemanticAnalyzer.cs (2)
2955
new
List
<ErrorContext>(selectClause.Items.Select(item => item.Expr.ErrCtx)) : null);
4318
List<DbExpression> args = new
List
<DbExpression>(predicates);
System\Data\Common\EntityUtil.cs (1)
1804
enumerable = new
List
<T>(enumerable);
System\Data\Common\Utils\Helpers.cs (1)
176
List<TNode> childNodes = new
List
<TNode>(getImmediateSubNodes(current));
System\Data\Common\Utils\ModifiableIteratorCollection.cs (1)
32
m_elements = new
List
<TElement>(elements);
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (1)
125
filePathList = new
List
<string>(sourceFilePaths);
System\Data\Mapping\StorageComplexTypeMapping.cs (3)
48
return new
List
<ComplexType>(m_types.Values).AsReadOnly();
58
return new
List
<ComplexType>(m_isOfTypes.Values).AsReadOnly();
67
return new
List
<StoragePropertyMapping>(m_properties.Values).AsReadOnly();
System\Data\Mapping\StorageEntityContainerMapping.cs (2)
174
return new
List
<StorageSetMapping>(this.m_entitySetMappings.Values).AsReadOnly();
191
return new
List
<StorageSetMapping>(this.m_associationSetMappings.Values).AsReadOnly();
System\Data\Mapping\StorageEntityTypeMapping.cs (2)
84
return new
List
<EdmType>(m_entityTypes.Values).AsReadOnly();
94
return new
List
<EdmType>(m_isOfEntityTypes.Values).AsReadOnly();
System\Data\Mapping\StorageMappingItemLoader.cs (1)
3887
List<StorageModificationFunctionParameterBinding> parameterBindings = new
List
<StorageModificationFunctionParameterBinding>(
System\Data\Mapping\StorageModificationFunctionMapping.cs (1)
299
this.Members = new ReadOnlyCollection<EdmMember>(new
List
<EdmMember>(
System\Data\Mapping\ViewGeneration\CqlGeneration\CaseCqlBlock.cs (1)
31
: base(slots, new
List
<CqlBlock>(new CqlBlock[] { child }), whereClause, identifiers, blockAliasNum)
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (1)
184
List<Constant> childDomain = new
List
<Constant>(domainMap.GetDomain(childPath));
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (3)
89
_keyAttributes = new
List
<MemberPath>(MemberPath.GetKeyMembers(context.Extent, _domainMap));
243
List<MemberPath> members = new
List
<MemberPath>(_domainMap.ConditionMembers(_extentPath.Extent));
445
nonConditionalAttributes = new
List
<MemberPath>(nonConditionalAttributes.Where(a => !a.IsPartOfKey));
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingProcessor.cs (3)
218
List<T> output = new
List
<T>(input);
231
List<T> output = new
List
<T>(input);
284
List<T_Tile> viewList = new
List
<T_Tile>(views);
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (2)
181
List<LeftCellWrapper> relevantWrapperList = new
List
<LeftCellWrapper>(relevantCellWrappers);
197
List<Constant> domain = new
List
<Constant>(_domainMap.GetDomain(column));
System\Data\Mapping\ViewGeneration\Structures\BoolExpression.cs (1)
99
List<BoolExpression> childList = new
List
<BoolExpression>(children);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
552
return new
List
<MemberProjectedSlot>(slots);
System\Data\Mapping\ViewGeneration\Structures\ErrorLog.cs (1)
135
m_sourceCells = new
List
<Cell>(sourceCells);
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (2)
71
m_path = new
List
<EdmMember>(prefix.m_path);
557
List<MemberPath> keyAttributes = new
List
<MemberPath>(
System\Data\Mapping\ViewGeneration\Structures\TypeConstant.cs (1)
186
List<MemberPath> keyMemberOutputPaths = new
List
<MemberPath>(entityType.KeyMembers.Select(km => new MemberPath(outputMember, km)));
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (1)
34
m_slots = new
List
<MemberProjectedSlot>(slots);
System\Data\Mapping\ViewGeneration\Validation\ExtentKey.cs (1)
29
m_keyFields = new
List
<MemberPath>(keyFields);
System\Data\Mapping\ViewGeneration\Validation\ViewKeyConstraint.cs (2)
104
List<ViewCellSlot> keySlots = new
List
<ViewCellSlot>(rightKeyConstraint.KeySlots);
154
List<ViewCellSlot> keySlots = new
List
<ViewCellSlot>(rightKeyConstraint.KeySlots);
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (1)
293
List<Cell> extentCellsList = new
List
<Cell>(extentCells);
System\Data\Metadata\MetadataArtifactLoader.cs (1)
241
return new
List
<string>(new string[] { Path });
System\Data\Metadata\MetadataArtifactLoaderComposite.cs (1)
47
_children = new
List
<MetadataArtifactLoader>(children).AsReadOnly();
System\Data\Metadata\MetadataArtifactLoaderXmlReaderWrapper.cs (1)
126
return new
List
<string>(new string[] { Path });
System\Data\Metadata\MetadataWorkspace.cs (1)
1345
copy._cacheTokens = new
List
<Object>(copy._cacheTokens);
System\Data\Metadata\ObjectLayer\ImmutableAssemblyCacheEntry.cs (2)
23
_typesInAssembly = new
List
<EdmType>(mutableEntry.TypesInAssembly).AsReadOnly();
24
_closureAssemblies = new
List
<Assembly>(mutableEntry.ClosureAssemblies).AsReadOnly();
System\Data\Objects\DataClasses\EntityCollection.cs (4)
389
List<IEntityWrapper> wrappedRelatedEntities = new
List
<IEntityWrapper>(_wrappedRelatedEntities.Values);
419
List<IEntityWrapper> values = new
List
<IEntityWrapper>(_wrappedRelatedEntities.Values);
460
List<IEntityWrapper> tempCopy = new
List
<IEntityWrapper>(_wrappedRelatedEntities.Values);
638
List<IEntityWrapper> affectedEntities = new
List
<IEntityWrapper>(_wrappedRelatedEntities.Values);
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (1)
181
refreshedValue = new
List
<TEntity>(GetResults<TEntity>(sourceQuery));
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (1)
319
List<Expression> normalizedArguments = new
List
<Expression>(callExpression.Arguments);
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
2235
var expressions = new
List
<DbExpression>(predicates);
3035
List<DbSortClause> keys = new
List
<DbSortClause>(sortExpression.SortOrder);
System\Data\Objects\Internal\ObjectSpanRewriter.cs (2)
440
new
List
<DbExpression>(new DbExpression[] { condition }),
441
new
List
<DbExpression>(new DbExpression[] { nullExpression }),
System\Data\Query\InternalTrees\Command.cs (1)
583
return new Node(m_nextNodeId++, op, new
List
<Node>(args));
System\Data\Query\InternalTrees\Nodes.cs (1)
55
: this(-1, op, new
List
<Node>(children))
System\Data\Query\InternalTrees\ScalarOps.cs (1)
1161
m_fields = new
List
<EdmProperty>(TypeHelpers.GetEdmType<RowType>(type).Properties);
System\Data\Query\InternalTrees\Vars.cs (1)
570
internal VarList(IEnumerable<Var> vars) :
base
(vars) { }
System\Data\Query\PlanCompiler\CodeGen.cs (2)
92
this.m_subCommands = new
List
<Node>(new Node[] { this.Command.Root });
93
childCommands = new
List
<ProviderCommandInfo>(new ProviderCommandInfo[] {
System\Data\Query\PlanCompiler\CTreeGenerator.cs (2)
120
internal VarInfoList(IEnumerable<VarInfo> elements) :
base
(elements) { }
1691
List<Var> outputAggVars = new
List
<Var>(op.Outputs);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
1861
List<DbExpression> predicates = new
List
<DbExpression>(
System\Data\Query\PlanCompiler\JoinGraph.cs (1)
282
: this(id, node, new
List
<AugmentedNode>(new AugmentedNode[] { leftChild, rightChild }))
System\Data\Query\PlanCompiler\NestPullup.cs (1)
1381
newNestNodeChildren = new
List
<Node>(nestNode.Children);
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (2)
2315
List<md.EdmProperty> outputFieldTypes = new
List
<md.EdmProperty>(outputTypeInfo.FlattenedType.Properties);
2448
List<md.EdmProperty> outputFields = new
List
<md.EdmProperty>(outputTypeInfo.FlattenedType.Properties);
System\Data\Query\PlanCompiler\PreProcessor.cs (3)
1772
relProperties = new
List
<RelProperty>(m_relPropertyHelper.GetRelProperties(entityType));
1777
List<RelProperty> copiedRelPropList = new
List
<RelProperty>(op.RelationshipProperties);
1850
relProperties = new
List
<RelProperty>(relPropertyHashSet);
System\Data\Query\PlanCompiler\VarRemapper.cs (1)
213
List<InternalTrees.SortKey> newSortKeys = new
List
<SortKey>(sortKeys);
System\Data\SqlClient\SqlProviderManifest.cs (1)
176
List<PrimitiveType> primitiveTypes = new
List
<PrimitiveType>(base.GetStoreTypes());
System\Data\UpdateException.cs (1)
66
List<ObjectStateEntry> list = new
List
<ObjectStateEntry>(stateEntries);
System.Data.Entity.Design (7)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (2)
207
_invalidTypes = new
List
<EdmType>(session.InvalidTypes);
231
return new
List
<EdmSchemaError>(session.Errors);
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (1)
201
list = new
List
<EdmSchemaError>(errors);
System\Data\Entity\Design\PluralizationService\EnglishPluralizationService.cs (2)
287
this._knownSingluarWords = new
List
<string>(
301
this._knownPluralWords = new
List
<string>(
System\Data\Entity\Design\SSDLGenerator\EntityStoreSchemaGeneratorDatabaseSchemaLoader.cs (1)
170
using (EntityCommand command = CreateFilteredCommand(_connection, sql, null, queryTypes, new
List
<EntityStoreSchemaFilterEntry>(filters), filterAliases))
System\Data\Entity\Design\SSDLGenerator\FunctionDetailsReader.cs (1)
54
new
List
<EntityStoreSchemaFilterEntry>(filters),
System.Data.Linq (24)
ChangeProcessor.cs (3)
368
List<TrackedObject> items = new
List
<TrackedObject>(this.tracker.GetInterestingObjects());
462
List<TrackedObject> items = new
List
<TrackedObject>(this.tracker.GetInterestingObjects());
542
List<TrackedObject> list = new
List
<TrackedObject>(this.tracker.GetInterestingObjects());
ChangeTracker.cs (1)
194
List<StandardTrackedObject> list = new
List
<StandardTrackedObject>((IEnumerable<StandardTrackedObject>)this.items.Values);
Mapping\AttributedMetaModel.cs (2)
148
this.staticTables = new
List
<MetaTable>(tables).AsReadOnly();
640
this.dataMembers = new
List
<MetaDataMember>(this.dataMemberMap.Values).AsReadOnly();
Mapping\MappedMetaModel.cs (1)
1504
return new
List
<MetaDataMember>(members).AsReadOnly();
Mapping\MappingSource.cs (1)
308
List<string> attrList = new
List
<string>(validAttributes);
SqlClient\Common\SqlNode.cs (7)
431
this.args = (args != null) ? new
List
<SqlExpression>(args) : new List<SqlExpression>();
439
this.args = (args != null) ? new
List
<SqlExpression>(args) : new List<SqlExpression>();
1037
this.values = values != null ? new
List
<SqlExpression>(values) : new List<SqlExpression>(0);
1156
this.whens = new
List
<SqlWhen>(whens);
1843
this.expressions = new
List
<SqlExpression>(exprs);
1968
this.assignments = new
List
<SqlAssign>(assignments);
2160
this.arguments = new
List
<SqlExpression>(args);
SqlClient\Query\QueryConverter.cs (1)
2716
this.IdentityMembers = new
List
<MemberInfo>(members);
SqlClient\Query\SqlParameterizer.cs (1)
73
return new
List
<SqlParameterInfo>(v.currentParams);
SqlClient\Query\SqlReorderer.cs (2)
214
existingOrders = new
List
<SqlOrderExpression>(this.rowNumberOrders);
217
existingOrders = new
List
<SqlOrderExpression>(this.orders);
SqlClient\Query\Translator.cs (1)
47
List<MetaType> mappedTypes = new
List
<MetaType>(rowType.InheritanceTypes);
SqlClient\Reader\ObjectReaderCompiler.cs (1)
2991
this.values = new
List
<T>(results);
SqlClient\SqlBuilder.cs (1)
39
List<string> parts = new
List
<string>(SqlIdentifier.GetCompoundIdentifierParts(table.TableName));
SqlClient\SqlProvider.cs (1)
1760
List<SqlParameterInfo> spis = new
List
<SqlParameterInfo>(this.queryInfo.Parameters);
Types.cs (1)
272
List<TEntity> removeList = new
List
<TEntity>(entities.Items);
System.Data.Services (10)
System\Data\Services\ETagAttribute.cs (2)
39
this.propertyNames = new ReadOnlyCollection<string>(new
List
<string>(new string[1] { propertyName }));
55
this.propertyNames = new ReadOnlyCollection<string>(new
List
<string>(propertyNames));
System\Data\Services\HttpProcessUtility.cs (1)
256
List<CharsetPart> parts = new
List
<CharsetPart>(AcceptCharsetParts(acceptCharset));
System\Data\Services\IgnorePropertiesAttribute.cs (2)
41
this.propertyNames = new ReadOnlyCollection<string>(new
List
<string>(new string[1] { propertyName }));
57
this.propertyNames = new ReadOnlyCollection<string>(new
List
<string>(propertyNames));
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
249
List<string> propertiesToBeIgnored = new
List
<string>(
System\Data\Services\Providers\ServiceOperation.cs (1)
104
this.parameters = new ReadOnlyCollection<ServiceOperationParameter>(new
List
<ServiceOperationParameter>(parameters));
System\Data\Services\Serializers\Serializer.cs (3)
580
new
List
<string>(this.segmentNames),
581
new
List
<ResourceSetWrapper>(this.segmentContainers),
582
new
List
<int>(this.segmentResultCounts)
System.Data.Services.Client (1)
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (1)
399
List<Expression> normalizedArguments = new
List
<Expression>(callExpression.Arguments);
System.Data.SqlXml (4)
System\Xml\Xsl\XmlQueryTypeFactory.cs (3)
80
return SequenceType.Create(ChoiceType.Create(PrimeChoice(new
List
<XmlQueryType>(left), right)), left.Cardinality | right.Cardinality);
95
List<XmlQueryType> list = new
List
<XmlQueryType>(types[0]);
122
return SequenceType.Create(ChoiceType.Create(PrimeChoice(new
List
<XmlQueryType>(left), right)), left.Cardinality + right.Cardinality);
System\Xml\Xsl\Xslt\XslAst.cs (1)
123
content = new
List
<XslNode>(collection);
System.IdentityModel (7)
System\IdentityModel\Asn1IntegerConverter.cs (3)
12
static List<byte[]> powersOfTwo = new
List
<byte[]>(new byte[][] { new byte[] { 1 } });
66
List<byte> negativeDecimalDigits = new
List
<byte>(TwoToThePowerOf(absoluteBitNumber));
102
List<byte> decimalDigits = new
List
<byte>(powersOfTwo[power - 1]);
System\IdentityModel\RsaEncryptionCookieTransform.cs (1)
93
_decryptionKeys = new
List
<RSA>(new RSA[] { _encryptionKey });
System\IdentityModel\RsaSignatureCookieTransform.cs (1)
105
_verificationKeys = new
List
<RSA>(new RSA[] { _signingKey });
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (2)
34
public static readonly ReadOnlyCollection<CookieTransform> DefaultCookieTransforms = (new
List
<CookieTransform>(new CookieTransform[] { new DeflateCookieTransform(), new ProtectedDataCookieTransform() }).AsReadOnly());
568
_transforms = new
List
<CookieTransform>(transforms).AsReadOnly();
System.Runtime.Caching (1)
System\Caching\MemoryCache.cs (1)
375
List<String> keysClone = new
List
<String>(keys);
System.Runtime.DurableInstancing (2)
System\Runtime\PersistencePipeline.cs (2)
258
this.keys = new
List
<XName>(this.basis.Where(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => value.Key));
270
this.values = new
List
<object>(this.basis.Where(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => value.Value.Value));
System.ServiceModel (33)
System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
29
: base(new
List
<AddressHeader>(addressHeaders))
System\ServiceModel\Channels\CorrelationCallbackMessageProperty.cs (2)
26
this.neededData = new
List
<string>(neededData);
44
this.neededData = new
List
<string>(callback.neededData);
System\ServiceModel\Channels\CorrelationDataSourceHelper.cs (2)
22
this.dataSources = new ReadOnlyCollection<CorrelationDataDescription>(new
List
<CorrelationDataDescription>(dataSources));
28
List<CorrelationDataDescription> newData = new
List
<CorrelationDataDescription>(dataSource1);
System\ServiceModel\Channels\CorrelationMessageProperty.cs (4)
56
additionalKeysList = new
List
<InstanceKey>(additionalKeys);
75
transientCorrelationsList = new
List
<InstanceKey>(transientCorrelations);
173
return new
List
<InstanceKey>(this.AdditionalKeys);
194
return new
List
<InstanceKey>(this.TransientCorrelations);
System\ServiceModel\Channels\PeerNeighborManager.cs (1)
367
return new
List
<IPeerNeighbor>(this.connectedNeighborList);
System\ServiceModel\Channels\PnrpPeerResolver.cs (1)
1953
List<CsAddrInfo> infos = new
List
<CsAddrInfo>(registerQuery.CsAddrInfos);
System\ServiceModel\Channels\TransportManager.cs (1)
285
transportManagersCopy = new
List
<TransportManager>(this.transportManagers);
System\ServiceModel\Description\DispatcherBuilder.cs (1)
55
targetSerializationTypes = new
List
<Type>(existingSerializationTypes);
System\ServiceModel\Description\ServiceCredentials.cs (1)
254
this.IdentityConfiguration.KnownIssuerCertificates = new
List
<X509Certificate2> (this.IssuedTokenAuthentication.KnownCertificates);
System\ServiceModel\Description\ServiceReflector.cs (1)
651
List<Type> types = new
List
<Type>(GetInheritedContractTypes(interfaceType));
System\ServiceModel\Dispatcher\ActionMessageFilter.cs (1)
68
this.actionSet = new ReadOnlyCollection<string>(new
List
<string>(this.actions.Keys));
System\ServiceModel\Dispatcher\ActionMessageFilterTable.cs (2)
193
List<MessageFilter> tmp = new
List
<MessageFilter>(filters);
203
Collection<MessageFilter> matches = new Collection<MessageFilter>(new
List
<MessageFilter>(this.always));
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
35
faultContractInfoList = new
List
<FaultContractInfo>(faultContractInfoCollection);
System\ServiceModel\Security\AcceptorSessionSymmetricTransportSecurityProtocol.cs (1)
93
supportingAuthenticators = new
List
<SupportingTokenAuthenticatorSpecification>(supportingAuthenticators);
System\ServiceModel\Security\InitiatorSessionSymmetricMessageSecurityProtocol.cs (1)
130
this.incomingSessionTokens = new
List
<SecurityToken>(tokens);
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (1)
105
this.incomingSessionTokens = new
List
<SecurityToken>(tokens);
System\ServiceModel\Security\IssuedTokenServiceCredential.cs (2)
41
this.allowedAudienceUris = new
List
<string>(other.allowedAudienceUris);
43
this.knownCertificates = new
List
<X509Certificate2>(other.knownCertificates);
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
147
this.channelSupportingTokenAuthenticatorSpecification = new Collection<SupportingTokenAuthenticatorSpecification>(new
List
<SupportingTokenAuthenticatorSpecification>(factory.channelSupportingTokenAuthenticatorSpecification));
System\ServiceModel\ServiceAuthenticationManager.cs (1)
47
List<IAuthorizationPolicy> authPolicies = new
List
<IAuthorizationPolicy>(message.Properties.Security.ServiceSecurityContext.AuthorizationPolicies);
System\ServiceModel\ServiceAuthorizationManager.cs (1)
75
List<IAuthorizationPolicy> policies = new
List
<IAuthorizationPolicy>(authorizationPolicies);
System\ServiceModel\ServiceHost.cs (1)
126
externalBaseAddresses = new ReadOnlyCollection<Uri>(new
List
<Uri>(this.baseAddresses));
System\ServiceModel\SynchronizedCollection.cs (1)
39
this.items = new
List
<T>(list);
System\ServiceModel\SynchronizedReadOnlyCollection.cs (2)
39
this.items = new
List
<T>(list);
65
this.items = new
List
<T>(list);
System\UriTemplate.cs (2)
1030
this.keys = new ReadOnlyCollection<string>(new
List
<string>(this.defaults.Keys));
1031
this.values = new ReadOnlyCollection<string>(new
List
<string>(this.defaults.Values));
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\MetabaseSettings.cs (1)
493
List<string> spns = spnsObj == null ? null : new
List
<string>(spnsObj as string[]);
System.ServiceModel.Activities (3)
System\ServiceModel\Activities\Dispatcher\BufferedReceiveManager.cs (1)
165
List<BookmarkInfo> bookmarks = new
List
<BookmarkInfo>(availableBookmarks);
System\ServiceModel\Activities\InternalSendMessage.cs (1)
788
List<InstanceKey> transientCorrelations = new
List
<InstanceKey>(correlationMessageProperty.TransientCorrelations);
System\ServiceModel\Activities\WorkflowService.cs (1)
308
clonedSettings.AdditionalConstraints.Add(constrants.Key, new
List
<Constraint>(constrants.Value));
System.ServiceModel.Web (6)
System\ServiceModel\Dispatcher\HelpPage.cs (1)
377
List<Type> listTypes = new
List
<Type>(od.KnownTypes);
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (4)
147
List<string> neededPathVars = new
List
<string>(uriTemplate.PathSegmentVariableNames);
148
List<string> neededQueryVars = new
List
<string>(uriTemplate.QueryValueVariableNames);
160
List<string> neededPathCopy = new
List
<string>(neededPathVars);
175
List<string> neededQueryCopy = new
List
<string>(neededQueryVars);
System\ServiceModel\Web\WebFaultException.cs (1)
159
this.knownTypes = (knownTypes == null) ? null : new
List
<Type>(knownTypes).ToArray();
System.Web (1)
ModelBinding\DataAnnotationsModelMetadataProvider.cs (1)
12
List<Attribute> attributeList = new
List
<Attribute>(attributes);
System.Web.DataVisualization (6)
Common\Formulas\FormulaHelpers.cs (3)
1404
List<DataField> unmappedFormulaFields = new
List
<DataField>(formulaFields);
1459
List<DataField> seriesFields = new
List
<DataField>(FormulaHelper.GetDataFields(series.ChartType));
1551
List<DataField> seriesFields = new
List
<DataField>(FormulaHelper.GetDataFields(chartType));
Common\General\BaseCollections.cs (1)
591
_cachedState = new
List
<T>(this);
Common\Utilities\CustomAttributesRegistry.cs (1)
399
new System.Collections.Generic.
List
<SeriesChartType >(
WebForm\General\ChartHttpHandler.cs (1)
2150
result = new
List
<HandlerPageTraceInfo>(_messages);
System.Web.DynamicData (1)
DynamicData\ModelProviders\DLinqTableProvider.cs (1)
26
var members = new
List
<MetaDataMember>(rowType.DataMembers);
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
188
List<EdmType> types = new
List
<EdmType>(EntityDataSourceUtil.GetTypeAndSubtypesOf(entityType, ocItemCollection, /*includeAbstractTypes*/true));
System.Web.Extensions (3)
ClientServices\Providers\SettingsSavedEventArgs.cs (1)
17
(failedSettingsList == null) ? new List<string>() : new
List
<string>(failedSettingsList);
Compilation\WCFModel\MapFile.cs (1)
38
_loadErrors = new
List
<ProxyGenerationError>(value);
Script\Serialization\ObjectConverter.cs (1)
182
List<String> memberNames = new
List
<String>(dictionary.Keys);
System.Windows.Forms.DataVisualization (5)
Common\Formulas\FormulaHelpers.cs (3)
1404
List<DataField> unmappedFormulaFields = new
List
<DataField>(formulaFields);
1459
List<DataField> seriesFields = new
List
<DataField>(FormulaHelper.GetDataFields(series.ChartType));
1551
List<DataField> seriesFields = new
List
<DataField>(FormulaHelper.GetDataFields(chartType));
Common\General\BaseCollections.cs (1)
591
_cachedState = new
List
<T>(this);
Common\Utilities\CustomAttributesRegistry.cs (1)
399
new System.Collections.Generic.
List
<SeriesChartType >(
System.Workflow.Activities (16)
Common\CompModHelpers.cs (1)
935
List<Activity> allActivities = new
List
<Activity>(compositeActivity.EnabledActivities);
Designers\StateDesigner.cs (2)
1616
if (activityDesigner == null || activityDesigner.ParentDesigner == null || !activityDesigner.ParentDesigner.CanMoveActivities(moveLocation, new
List
<Activity>(new Activity[] { activity }).AsReadOnly()))
1965
new
List
<Activity>(new Activity[] { child }).AsReadOnly(),
Designers\StateDesignerConnector.cs (4)
121
List<Rectangle> excluded = new
List
<Rectangle>(base.ExcludedRoutingRectangles);
181
new
List
<Point>(ConnectorSegments).ToArray(),
216
new
List
<Point>(ConnectorSegments).ToArray(),
262
List<PropertyInfo> properties = new
List
<PropertyInfo>(base.GetProperties(serializationManager, obj));
Role\ADRole.cs (6)
86
this.m_operations = new
List
<IDirectoryOperation>(operations);
139
List<IDirectoryOperation> queries = new
List
<IDirectoryOperation>(this.Operations);
147
List<IDirectoryOperation> queries = new
List
<IDirectoryOperation>(this.Operations);
155
List<IDirectoryOperation> queries = new
List
<IDirectoryOperation>(this.Operations);
163
List<IDirectoryOperation> queries = new
List
<IDirectoryOperation>(this.Operations);
173
List<IDirectoryOperation> queries = new
List
<IDirectoryOperation>(this.Operations);
Rules\Parser\Parser.cs (3)
246
List<MemberInfo> members = new
List
<MemberInfo>(computedType.GetMembers(flags));
250
List<Type> baseInterfaces = new
List
<Type>(computedType.GetInterfaces());
381
List<MemberInfo> members = new
List
<MemberInfo>(computedType.GetMembers(flags));
System.Workflow.ComponentModel (56)
AuthoringOM\ActivitiesCollection.cs (2)
407
return (this.removedItems != null) ? new
List
<Activity>(this.removedItems).AsReadOnly() : new List<Activity>().AsReadOnly();
415
return (this.addedItems != null) ? new
List
<Activity>(this.addedItems).AsReadOnly() : new List<Activity>().AsReadOnly();
AuthoringOM\Activity.cs (2)
1387
this.SetValue(SynchronizationHandlesProperty, new ReadOnlyCollection<string>(new
List
<string>(handles)));
1735
IList<ActivityExecutionContextInfo> childsCompletedContextsClone = new
List
<ActivityExecutionContextInfo>(childsCompletedContexts);
AuthoringOM\ActivityExecutionContext.cs (1)
557
List<string> handles = new
List
<string>(handleCollection);
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
75
List<object> arguments = new
List
<object>(this.argumentValues);
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
798
List<T> memberCollection = new
List
<T>(membersDictionary.Values);
AuthoringOM\Compiler\XomlCompilerParameters.cs (1)
398
this.userCodeCCUs = new
List
<CodeCompileUnit>(parameters.userCodeCCUs);
AuthoringOM\DependencyObject.cs (1)
604
return new
List
<DependencyProperty>(this.metaProperties.Keys).AsReadOnly();
AuthoringOM\Design\ActivityDesigner.cs (2)
2549
if (!compositeActivityDesigner.CanInsertActivities(hitInfo, new
List
<Activity>(activities).AsReadOnly()))
2557
CompositeActivityDesigner.InsertActivities(compositeActivityDesigner, hitInfo, new
List
<Activity>(activities).AsReadOnly(), SR.GetString(SR.PastingActivities));
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (3)
112
List<PropertyInfo> properties = new
List
<PropertyInfo>(base.GetProperties(serializationManager, obj));
133
List<PropertyInfo> properties = new
List
<PropertyInfo>(base.GetProperties(serializationManager, obj));
190
List<PropertyInfo> properties = new
List
<PropertyInfo>(base.GetProperties(serializationManager, obj));
AuthoringOM\Design\CommandSet.cs (3)
409
if (compositeActivityDesigner != null && !compositeActivityDesigner.CanRemoveActivities(new
List
<Activity>((Activity[])((ArrayList)entry.Value).ToArray(typeof(Activity))).AsReadOnly()))
471
cmd.Enabled = (components != null && hitInfo != null && compositeDesigner.CanInsertActivities(hitInfo, new
List
<Activity>(Helpers.GetTopLevelActivities(components)).AsReadOnly()));
927
List<Activity> topLevelActivities = new
List
<Activity>(Helpers.GetTopLevelActivities(components));
AuthoringOM\Design\CompositeActivityDesigner.cs (1)
526
parentDesigner.RemoveActivities(new
List
<Activity>(new Activity[] { activity }).AsReadOnly());
AuthoringOM\Design\Connector.cs (6)
314
Rectangle bounds = DesignerGeometryHelper.RectangleFromLineSegments(new
List
<Point>(ConnectorSegments).ToArray());
445
ActivityDesignerPaint.DrawConnectors(e.Graphics, e.DesignerTheme.ForegroundPen, new
List
<Point>(ConnectorSegments).ToArray(), arrowCapSize, maxCapSize, theme.ConnectorStartCap, theme.ConnectorEndCap);
459
ActivityDesignerPaint.DrawConnectors(e.Graphics, lineSelectionPen, new
List
<Point>(ConnectorSegments).ToArray(), arrowCapSize, maxCapSize, theme.ConnectorStartCap, theme.ConnectorEndCap);
1275
List<Point> segments = new
List
<Point>(this.editedConnector.ConnectorSegments);
1816
List<Rectangle> excludedRectangles = new
List
<Rectangle>(rectanglesToExclude);
1825
List<Point> excludedLines = new
List
<Point>(linesToExclude);
AuthoringOM\Design\CustomActivityDesigner.cs (1)
329
List<Activity> activitiesToRemove = new
List
<Activity>(((CompositeActivity)host.RootComponent).Activities);
AuthoringOM\Design\DesignerInterfaces.cs (1)
188
this.draggedActivities = new
List
<Activity>(draggedActivities);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
347
List<Assembly> runtimeAssemblies = new
List
<Assembly>(currentTypeProvider.ReferencedAssemblies);
AuthoringOM\Design\FreeFormDesigner.cs (3)
400
List<Connector> connectors = new
List
<Connector>(this.connectors);
965
List<Activity> topLevelActivities = new
List
<Activity>(Helpers.GetTopLevelActivities(selectionService.GetSelectedComponents()));
1198
parentDesigner.MoveActivities(new ConnectorHitTestInfo(this, HitTestLocations.Designer, moveIndex), new
List
<Activity>(new Activity[] { childDesigner.Activity }).AsReadOnly());
AuthoringOM\Design\MessageFilters\DragDropManager.cs (2)
728
if (!compositeDesigner.IsEditable || !compositeDesigner.CanInsertActivities(dropLocation, new
List
<Activity>(this.draggedActivities).AsReadOnly()))
745
if (compositeActivityDesigner != null && !compositeActivityDesigner.CanMoveActivities(dropLocation, new
List
<Activity>(activitiesToMove).AsReadOnly()))
AuthoringOM\Design\MessageFilters\GlyphManager.cs (2)
25
:
base
(glyphs)
30
:
base
(glyphs)
AuthoringOM\Design\MessageFilters\WindowManager.cs (2)
262
List<Activity> topLevelActivities = new
List
<Activity>(Helpers.GetTopLevelActivities(selectionService.GetSelectedComponents()));
268
if (compositeActivityDesigner != null && !compositeActivityDesigner.CanRemoveActivities(new
List
<Activity>((Activity[])((ArrayList)entry.Value).ToArray(typeof(Activity))).AsReadOnly()))
AuthoringOM\Design\ParallelActivityDesigner.cs (1)
472
CompositeActivityDesigner.InsertActivities(this, new ConnectorHitTestInfo(this, HitTestLocations.Designer, compositeActivity.Activities.Count), new
List
<Activity>(new Activity[] { branchActivity }).AsReadOnly(), DR.GetString(DR.AddingBranch, branchActivity.GetType().Name));
AuthoringOM\Design\SecondaryViewProvider.cs (1)
191
CompositeActivityDesigner.InsertActivities(this.parentDesigner, new HitTestInfo(this.parentDesigner, HitTestLocations.Designer), new
List
<Activity>(new Activity[] { activity }).AsReadOnly(), SR.GetString(SR.AddingImplicitActivity));
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (1)
259
List<Point> connectionPoints = new
List
<Point>(base.GetInnerConnections(edges));
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (4)
224
List<ActivityDesignerVerb> smartTagVerbs = new
List
<ActivityDesignerVerb>(base.SmartTagVerbs);
441
List<Point> connectionPoints = new
List
<Point>(GetConnections(edges));
582
List<DesignerView> views = new
List
<DesignerView>(ValidatedViews);
732
if (activityDesigner == null || activityDesigner.ParentDesigner == null || !activityDesigner.ParentDesigner.CanMoveActivities(moveLocation, new
List
<Activity>(new Activity[] { activity }).AsReadOnly()))
AuthoringOM\Design\WorkflowView.cs (1)
2406
List<ElapsedEventUnit> clonedList = new
List
<ElapsedEventUnit>(this.elapsedEvents);
AuthoringOM\Design\XomlDesignerLoader.cs (1)
863
extendedUIService.AddDesignerActions(new
List
<DesignerAction>(activityDesigner.DesignerActions).ToArray());
AuthoringOM\ItemList.cs (6)
53
return (this.removedItems != null) ? new
List
<T>(this.removedItems).AsReadOnly() : new List<T>().AsReadOnly();
61
return (this.addedItems != null) ? new
List
<T>(this.addedItems).AsReadOnly() : new List<T>().AsReadOnly();
255
FireListChanging(new ItemListChangeEventArgs<T>(-1, null, new
List
<T>(collection), this.owner, ItemListChangeAction.Add));
257
FireListChanged(new ItemListChangeEventArgs<T>(base.Count, null, new
List
<T>(collection), this.owner, ItemListChangeAction.Add));
267
FireListChanging(new ItemListChangeEventArgs<T>(index, null, new
List
<T>(collection), this.owner, ItemListChangeAction.Add));
269
FireListChanged(new ItemListChangeEventArgs<T>(index, null, new
List
<T>(collection), this.owner, ItemListChangeAction.Add));
AuthoringOM\ScheduleChanges.cs (1)
893
List<PropertyInfo> properties = new
List
<PropertyInfo>(base.GetProperties(serializationManager, obj));
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (1)
69
List<DependencyProperty> dependencyProperties = new
List
<DependencyProperty>(dependencyObject.MetaDependencyProperties);
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (2)
164
AddMappings(new
List
<WorkflowMarkupSerializerMapping>(new WorkflowMarkupSerializerMapping[] { mappingForType }));
206
xmlnsMappings = new
List
<WorkflowMarkupSerializerMapping>(matchingMappings);
Shared\CompModHelpers.cs (1)
933
List<Activity> allActivities = new
List
<Activity>(compositeActivity.EnabledActivities);
System.Workflow.Runtime (13)
Lock.cs (2)
304
List<SchedulerLockGuardInfo> eventList = new
List
<SchedulerLockGuardInfo>(w.EventsToFireList);
312
List<SchedulerLockGuardInfo> eventList = new
List
<SchedulerLockGuardInfo>(workflowExec.EventsToFireList);
RTTrackingProfile.cs (5)
148
_activitiesIgnore = new
List
<string>(runtimeProfile._activitiesIgnore);
159
_dynamicActivitiesIgnore = new
List
<string>(runtimeProfile._dynamicActivitiesIgnore);
166
_userIgnore = new
List
<string>(runtimeProfile._userIgnore);
177
_dynamicUserIgnore = new
List
<string>(runtimeProfile._dynamicUserIgnore);
658
List<Activity> allActivities = new
List
<Activity>(compositeActivity.EnabledActivities);
Tracking.cs (2)
388
activityCallPath = new
List
<string>(path);
474
activityCallPath = new
List
<string>(path);
Tracking\SqlTrackingService.cs (1)
2603
List<Activity> allActivities = new
List
<Activity>(compositeActivity.EnabledActivities);
WorkBatch.cs (2)
251
List<object> values = new
List
<object>(workItem.Value.Values);
262
List<object> values = new
List
<object>(workItem.Value.Values);
WorkflowQueuingService.cs (1)
453
List<IComparable> list = new
List
<IComparable>(this.persistedQueueStates.Keys);
System.WorkflowServices (2)
System\ServiceModel\Security\SerializableAuthorizationContext.cs (1)
21
static readonly IList<Type> redBitsKnownType = new
List
<Type>(
System\Workflow\Activities\ContractType.cs (1)
687
List<T> memberCollection = new
List
<T>(membersDictionary.Values);
System.Xml (9)
System\Xml\Core\XmlWriterSettings.cs (1)
316
clonedSettings.cdataSections = new
List
<XmlQualifiedName>(cdataSections);
System\Xml\Schema\XdrBuilder.cs (2)
714
builder._ElementDef._ElementDecl.Values = new
List
<string>((string[]) obj);
969
builder._AttributeDef._AttDef.Values = new
List
<string>((string[]) obj);
System\Xml\Schema\XmlValueConverter.cs (1)
3270
return new
List
<string>(XmlConvert.SplitString(value));
System\Xml\XPath\Internal\CacheAxisQuery.cs (1)
24
this.outputBuffer = new
List
<XPathNavigator>(other.outputBuffer);
System\Xml\XPath\Internal\CacheOutputQuery.cs (1)
28
this.outputBuffer = new
List
<XPathNavigator>(other.outputBuffer);
System\Xml\XPath\Internal\ClonableStack.cs (1)
19
private ClonableStack(System.Collections.Generic.IEnumerable<T> collection) :
base
(collection) { }
System\Xml\XPath\Internal\FollowingSibling.cs (1)
27
this.parentStk = new
List
<XPathNavigator>(other.parentStk);
System\Xml\XPath\Internal\SortQuery.cs (1)
30
this.results = new
List
<SortKey>(other.results);
System.Xml.Linq (2)
System\Xml\Linq\XLinq.cs (2)
7762
foreach (XAttribute a in new
List
<XAttribute>(source))
7773
foreach (T node in new
List
<T>(source))
WindowsBase (3)
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
1125
List<PackageRelationship> relationshipsToVisit = new
List
<PackageRelationship>(relationships);
Base\System\IO\Packaging\ZipPackage.cs (2)
670
List<PieceInfo> pieces = new
List
<PieceInfo>(pieceDictionary.Keys);
1235
pieces = new
List
<PieceInfo>(contentTypeStreamPieces.Keys);
WsatConfig (1)
CommandLine\ArgumentsParser.cs (1)
362
List<string> acceptedAccounts = new
List
<string>(config.KerberosGlobalAcl);
XamlBuildTask (4)
Microsoft\Build\Tasks\Xaml\AttributeParameterData.cs (1)
93
this.arrayContents = new
List
<AttributeParameterData>(arrayContents);
Microsoft\Build\Tasks\Xaml\CompilationPass2Task.cs (1)
137
generatedCodeFiles = new
List
<ITaskItem>(value);
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTask.cs (2)
57
generatedResources = new
List
<ITaskItem>(value);
72
generatedCodeFiles = new
List
<ITaskItem>(value);