114 references to Create
ConfigurationSchemaGenerator (1)
ILLink.RoslynAnalyzer (2)
Microsoft.CodeAnalysis (6)
Collections\ArrayBuilderExtensions.cs (3)
88return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]), map(items[3]));
128return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg), map(items[3], arg));
168return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
Collections\ImmutableArrayExtensions.cs (2)
188return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
503return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]), map(self[3], other[3]));
Microsoft.CodeAnalysis.CodeStyle (7)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
88return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]), map(items[3]));
128return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg), map(items[3], arg));
168return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
188return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
503return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]), map(self[3], other[3]));
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Query.cs (4)
430ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda),
458ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda),
498ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda),
528ImmutableArray.Create(inExpression, outerKeySelectorLambda, innerKeySelectorLambda, resultSelectorLambda),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CSharpCompilationOptionsTests.cs (2)
81TestHiddenProperty((old, value) => old.WithCryptoPublicKey(value), opt => opt.CryptoPublicKey, ImmutableArray.Create<byte>(0, 1, 2, 3));
119TestProperty((old, value) => old.WithCryptoPublicKey(value), opt => opt.CryptoPublicKey, ImmutableArray.Create<byte>(0, 1, 2, 3));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
88return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]), map(items[3]));
128return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg), map(items[3], arg));
168return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.CodeAnalysis.UnitTests (14)
Collections\ImmutableArrayExtensionsTests.cs (10)
368var a = ImmutableArray.Create<int>(3, 2, 1, 0);
369var b = ImmutableArray.Create<int>(0, 1, 2, 3);
370var c = ImmutableArray.Create<int>(2, 2, 2, 2);
381AssertEx.Equal(new[] { 10, 20, 30, 40 }, ImmutableArray.Create(1, 2, 3, 4).SelectAsArray(i => 10 * i));
417var quad1 = ImmutableArray.Create(1, 2, 3, 4);
418var quad2 = ImmutableArray.Create(10, 11, 12, 13);
419var quad3 = ImmutableArray.Create(11, 13, 15, 17);
449var quad1 = ImmutableArray.Create(1, 2, 3, 4);
450var quad2 = ImmutableArray.Create(10, 11, 12, 13);
451var quad3 = ImmutableArray.Create(13, 16, 19, 22);
InternalUtilities\OneOrManyTests.cs (4)
66Verify(OneOrMany.Create(ImmutableArray.Create(1, 2, 3, 4)), 1, 2, 3, 4);
69Verify(new OneOrMany<int>(ImmutableArray.Create(1, 2, 3, 4)), 1, 2, 3, 4);
102Verify(OneOrMany.Create(ImmutableArray.Create(1, 1, 1, 2)).RemoveAll(1), 2);
211var quad = OneOrMany.Create(ImmutableArray.Create<int>(10, 20, 30, 40));
Microsoft.CodeAnalysis.VisualBasic (7)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Analyzers\VisualBasic\Analyzers\NamingStyle\VisualBasicNamingStyleDiagnosticAnalyzer.vb (1)
15ImmutableArray.Create(
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.VisualBasic.Features (11)
src\Analyzers\VisualBasic\Analyzers\NamingStyle\VisualBasicNamingStyleDiagnosticAnalyzer.vb (1)
15ImmutableArray.Create(
Microsoft.CodeAnalysis.Workspaces (6)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
88return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]), map(items[3]));
128return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg), map(items[3], arg));
168return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
188return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
503return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]), map(self[3], other[3]));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (3)
88return ImmutableArray.Create(map(items[0]), map(items[1]), map(items[2]), map(items[3]));
128return ImmutableArray.Create(map(items[0], arg), map(items[1], arg), map(items[2], arg), map(items[3], arg));
168return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
188return ImmutableArray.Create(map(items[0], 0, arg), map(items[1], 1, arg), map(items[2], 2, arg), map(items[3], 3, arg));
503return ImmutableArray.Create(map(self[0], other[0]), map(self[1], other[1]), map(self[2], other[2]), map(self[3], other[3]));
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Metrics (1)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
Microsoft.Interop.SourceGeneration (2)
Microsoft.ML.InternalCodeAnalyzer (2)
System.Private.CoreLib.Generators (1)
System.Reflection.Metadata (2)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (1)
VBCSCompiler.UnitTests (1)