29 references to ToImmutableList
Microsoft.Build (2)
Graph\ProjectInterpretation.cs (2)
392var defaultParts = new GlobalPropertyPartsForMSBuildTask(properties.ToImmutableDictionary(), additionalProperties.ToImmutableDictionary(), undefineProperties.ToImmutableList()); 533.ToImmutableList();
Microsoft.Build.Framework (1)
ImmutableSegmentedList.cs (1)
33/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/>
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
33/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/>
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
33/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/>
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedList.cs (1)
33/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/>
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
306var separators = orderByClauseSyntax.Orderings.GetSeparators().ToImmutableList();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
306var separators = orderByClauseSyntax.Orderings.GetSeparators().ToImmutableList();
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Protocol\Internal\Text\ClassifiedTextElement.cs (2)
22Runs = runs?.ToImmutableList() ?? throw new ArgumentNullException("runs"); 27Runs = runs?.ToImmutableList() ?? throw new ArgumentNullException("runs");
Protocol\Internal\Text\ContainerElement.cs (2)
25Elements = elements?.ToImmutableList() ?? throw new ArgumentNullException("elements"); 31Elements = elements?.ToImmutableList() ?? throw new ArgumentNullException("elements");
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
33/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/>
Workspace\Solution\TextDocumentStates.cs (1)
67: this(states.Select(s => s.Id).ToImmutableList(),
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
33/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/>
Microsoft.DotNet.Build.Tasks.Feed (5)
src\model\TargetChannelConfig.cs (3)
63TargetFeeds = targetFeeds.ToImmutableList(); 65FilenamesToExclude = filenamesToExclude?.ToImmutableList() ?? ImmutableList<string>.Empty; 180ContentTypes = contentTypes.ToImmutableList();
src\model\TargetFeedConfig.cs (1)
88FilenamesToExclude = filenamesToExclude?.ToImmutableList() ?? ImmutableList<string>.Empty;
src\PublishArtifactsInManifestBase.cs (1)
351}).ToImmutableList();
Microsoft.DotNet.Helix.Sdk (1)
GetHelixWorkItems.cs (1)
106.ToImmutableList();
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (7)
Modeler\ClassTypeModel.cs (1)
21Properties = properties.ToImmutableList();
Modeler\EnumTypeModel.cs (1)
15Values = values.ToImmutableList();
Modeler\MethodGroupModel.cs (1)
15Methods = methods.ToImmutableList();
Modeler\MethodModel.cs (1)
30Parameters = parameters.ToImmutableList();
Modeler\ServiceClientModel.cs (2)
21Types = types.ToImmutableList(); 22MethodGroups = methodGroups.ToImmutableList();
Modeler\ServiceClientModelFactory.cs (1)
128.ToImmutableList();
Microsoft.DotNet.XUnitAssert.Tests (1)
EquivalenceAssertsTests.cs (1)
1148 Assert.Equivalent(new[] { 1, 2, 3 }.ToImmutableList(), new[] { 1, 2, 3 }.ToImmutableSortedSet());