29 instantiations of ReadOnlyCollection
Microsoft.Build (27)
BackEnd\BuildManager\BuildRequestData.cs (1)
195
new
ReadOnlyCollection
<ProjectPropertyInstance>(GlobalPropertiesDictionary);
Collections\ItemDictionary.cs (1)
127
return new
ReadOnlyCollection
<T>(list);
Construction\ProjectElementContainer.cs (2)
81
: new Collections.
ReadOnlyCollection
<ProjectElement>(new ProjectElementSiblingEnumerable(FirstChild));
105
: new Collections.
ReadOnlyCollection
<ProjectElement>(new ProjectElementSiblingEnumerable(LastChild, forwards: false));
Construction\ProjectRootElement.cs (4)
300
public ICollection<ProjectItemDefinitionElement> ItemDefinitions => new
ReadOnlyCollection
<ProjectItemDefinitionElement>(GetAllChildrenOfType<ProjectItemDefinitionElement>());
312
public ICollection<ProjectItemElement> Items => new
ReadOnlyCollection
<ProjectItemElement>(GetAllChildrenOfType<ProjectItemElement>());
322
public ICollection<ProjectImportElement> Imports => new
ReadOnlyCollection
<ProjectImportElement>(GetAllChildrenOfType<ProjectImportElement>());
334
public ICollection<ProjectPropertyElement> Properties => new
ReadOnlyCollection
<ProjectPropertyElement>(GetAllChildrenOfType<ProjectPropertyElement>());
Definition\Project.cs (7)
2176
public override ICollection<ProjectProperty> Properties => new
ReadOnlyCollection
<ProjectProperty>(_data.Properties);
2218
public override ICollection<ProjectItem> Items => new
ReadOnlyCollection
<ProjectItem>(_data.Items);
2238
return new
ReadOnlyCollection
<ProjectItem>(_data.ItemsIgnoringCondition);
2330
return new
ReadOnlyCollection
<ProjectProperty>(allEvaluatedProperties);
2352
return new
ReadOnlyCollection
<ProjectMetadata>(allEvaluatedItemDefinitionMetadata);
2376
return new
ReadOnlyCollection
<ProjectItem>(allEvaluatedItems);
4608
ICollection<ProjectItem> items = new
ReadOnlyCollection
<ProjectItem>(ItemsByEvaluatedIncludeCache[evaluatedInclude]);
Instance\ProjectInstance.cs (6)
654
this.CreatePropertiesSnapshot(new
ReadOnlyCollection
<ProjectProperty>(data.Properties), immutable);
659
var projectItemToInstanceMap = this.CreateItemsSnapshot(new
ReadOnlyCollection
<ProjectItem>(data.Items), data.ItemTypes.Count, keepEvaluationCache);
661
this.CreateEvaluatedIncludeSnapshotIfRequested(keepEvaluationCache, new
ReadOnlyCollection
<ProjectItem>(data.Items), projectItemToInstanceMap);
1126
new
ReadOnlyCollection
<ProjectPropertyInstance>(_properties);
1141
new
ReadOnlyCollection
<ProjectItemInstance>(_items);
1560
internal ICollection<ProjectPropertyInstance> TestEnvironmentalProperties => new
ReadOnlyCollection
<ProjectPropertyInstance>(_environmentVariableProperties);
Instance\ProjectItemDefinitionInstance.cs (1)
110
return new
ReadOnlyCollection
<ProjectMetadataInstance>(_metadata.Values);
Instance\ProjectItemGroupTaskInstance.cs (1)
98
new
ReadOnlyCollection
<ProjectItemGroupTaskItemInstance>(_items);
Instance\ProjectItemGroupTaskItemInstance.cs (1)
329
new
ReadOnlyCollection
<ProjectItemGroupTaskMetadataInstance>(_metadata);
Instance\ProjectItemInstance.cs (1)
285
get { return new
ReadOnlyCollection
<string>(_taskItem.MetadataNames.Cast<string>()); }
Instance\ProjectPropertyGroupTaskInstance.cs (1)
98
new
ReadOnlyCollection
<ProjectPropertyGroupTaskPropertyInstance>(_properties);
Instance\ProjectTargetInstance.cs (1)
335
return new
ReadOnlyCollection
<ProjectTaskInstance>(Children.OfType<ProjectTaskInstance>());
Microsoft.Build.Engine.UnitTests (2)
Collections\OMcollections_tests.cs (2)
243
new
ReadOnlyCollection
<string>(null);
297
var collection = new
ReadOnlyCollection
<string>(backing);
1 reference to ReadOnlyCollection
Microsoft.Build.Engine.UnitTests (1)
Collections\OMcollections_tests.cs (1)
297
var
collection = new ReadOnlyCollection<string>(backing);