74 references to Create
dotnet-format (1)
CodeFormatter.cs (1)
16private static readonly ImmutableArray<ICodeFormatter> s_codeFormatters = ImmutableArray.Create<ICodeFormatter>(
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
ILLink.RoslynAnalyzer (3)
RequiresAssemblyFilesAnalyzer.cs (1)
37public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(s_locationRule, s_getFilesRule, s_requiresAssemblyFilesRule, s_requiresAssemblyFilesAttributeMismatch, s_requiresAssemblyFilesOnStaticCtor, s_requiresAssemblyFilesOnEntryPoint);
RequiresDynamicCodeAnalyzer.cs (1)
29ImmutableArray.Create(s_requiresDynamicCodeRule, s_requiresDynamicCodeAttributeMismatch, s_requiresDynamicCodeOnStaticCtor, s_requiresDynamicCodeOnEntryPoint, s_referenceNotMarkedIsAotCompatibleRule);
RequiresUnreferencedCodeAnalyzer.cs (1)
37ImmutableArray.Create(s_makeGenericMethodRule, s_makeGenericTypeRule, s_requiresUnreferencedCodeRule, s_requiresUnreferencedCodeAttributeMismatch, s_requiresUnreferencedCodeOnStaticCtor, s_requiresUnreferencedCodeOnEntryPoint, s_referenceNotMarkedIsTrimmableRule, s_dynamicallyAccessedMembersMismatchTypeArgumentTargetsGenericParameterRule);
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ImmutableArrayExtensions.cs (1)
57var array = ImmutableArray.Create(items);
Microsoft.Build (1)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.Build.Framework (1)
Collections\RefArrayBuilder.cs (1)
363=> ImmutableArray.Create(AsSpan());
Microsoft.CodeAnalysis (3)
InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
Operations\ControlFlowGraphBuilder.cs (1)
6074var validKinds = ImmutableArray.Create(OperationKind.Invocation, OperationKind.DynamicInvocation, OperationKind.Increment, OperationKind.Literal,
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.Analyzers (4)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
177public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
MetaAnalyzers\RegisterActionAnalyzer.cs (1)
107public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\WebInputSources.cs (1)
32var dependencyFullTypeNames = ImmutableArray.Create(WellKnownTypeNames.MicrosoftAspNetCoreMvcControllerBase,
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp (4)
Compiler\MethodBodySynthesizer.cs (1)
519statements: ImmutableArray.Create<BoundStatement>(
Symbols\Compilation_WellKnownMembers.cs (1)
476ImmutableArray.Create(
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
304? ImmutableArray.Create( 313: ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
12ImmutableArray.Create(
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
12ImmutableArray.Create(
Microsoft.CodeAnalysis.Extensions.Package (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.NetAnalyzers (26)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldHaveCorrectSuffix.cs (2)
37private static readonly ImmutableArray<string> s_collectionDictionarySetStackQueueSuffixes = ImmutableArray.Create(CollectionSuffix, DictionarySuffix, SetSuffix, StackSuffix, QueueSuffix); 73ImmutableArray.Create(
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotContainUnderscores.cs (1)
119public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(AssemblyRule, NamespaceRule, TypeRule, MemberRule, TypeTypeParameterRule, MethodTypeParameterRule, MemberParameterRule, DelegateParameterRule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementIDisposableCorrectly.cs (1)
125ImmutableArray.Create(IDisposableReimplementationRule, FinalizeOverrideRule, DisposeOverrideRule, DisposeSignatureRule, RenameDisposeRule, DisposeBoolSignatureRule, DisposeImplementationRule, FinalizeImplementationRule, ProvideDisposeBoolRule);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UseIntegralOrStringArgumentForIndexers.cs (1)
38ImmutableArray.Create(
Microsoft.CodeQuality.Analyzers\Maintainability\CodeMetricsAnalyzer.cs (1)
112public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(CA1501Rule, CA1502Rule, CA1505Rule, CA1506Rule, InvalidEntryInCodeMetricsConfigFileRule);
Microsoft.CodeQuality.Analyzers\Maintainability\DoNotIgnoreMethodResults.cs (1)
139public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(ObjectCreationRule, StringCreationRule, HResultOrErrorCodeRule, TryParseRule, PureMethodRule);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidMultipleEnumerations\AvoidMultipleEnumerations.cs (4)
46private static readonly ImmutableArray<(string typeName, string methodName)> s_immutableCollectionsTypeNamesAndConvensionMethods = ImmutableArray.Create( 57private static readonly ImmutableArray<string> s_constructorsEnumeratedParameterTypes = ImmutableArray.Create( 70private static readonly ImmutableArray<string> s_enumeratedParametersLinqMethods = ImmutableArray.Create( 103private static readonly ImmutableArray<string> s_linqChainMethods = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\InteropServices\DisableRuntimeMarshalling.cs (1)
128public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (1)
153public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(OnlySupportedCsReachable, OnlySupportedCsUnreachable,
Microsoft.NetCore.Analyzers\InteropServices\UseValidPlatformString.cs (1)
26private static readonly ImmutableArray<SymbolKind> s_symbols = ImmutableArray.Create(SymbolKind.NamedType, SymbolKind.Method, SymbolKind.Property, SymbolKind.Field, SymbolKind.Event);
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (1)
118public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Runtime\DetectPreviewFeatureAnalyzer.cs (2)
31private static readonly ImmutableArray<SymbolKind> s_symbols = ImmutableArray.Create(SymbolKind.NamedType, SymbolKind.Method, SymbolKind.Property, SymbolKind.Field, SymbolKind.Event); 194public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
Microsoft.NetCore.Analyzers\Runtime\DoNotRaiseReservedExceptionTypes.cs (1)
45private static readonly ImmutableArray<string> s_reservedExceptions = ImmutableArray.Create("System.OutOfMemoryException",
Microsoft.NetCore.Analyzers\Runtime\LoggerMessageDefineAnalyzer.cs (1)
98public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(CA1727Rule, CA1848Rule, CA2253Rule, CA2254Rule, CA2017Rule, CA2023Rule);
Microsoft.NetCore.Analyzers\Runtime\SpecifyIFormatProvider.cs (2)
80private static readonly ImmutableArray<string> s_dateInvariantFormats = ImmutableArray.Create("o", "O", "r", "R", "s", "u"); 82public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(IFormatProviderAlternateStringRule, IFormatProviderAlternateRule, IFormatProviderOptionalRule, UICultureStringRule, UICultureRule);
Microsoft.NetCore.Analyzers\Runtime\SpecifyStringComparison.cs (1)
28ImmutableArray.Create("Compare", "StartsWith", "EndsWith", "IndexOf", "LastIndexOf");
Microsoft.NetCore.Analyzers\Security\DoNotCallDangerousMethodsInDeserialization.cs (1)
28private ImmutableArray<(string, string[])> DangerousCallable = ImmutableArray.Create<(string, string[])>
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessing.cs (1)
67= ImmutableArray.Create(
Microsoft.NetFramework.Analyzers\MarkVerbHandlersWithValidateAntiforgeryTokenAnalyzer.cs (1)
74public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(NoVerbsRule, NoVerbsNoTokenRule, GetAndTokenRule, GetAndOtherAndTokenRule, VerbsAndNoTokenRule);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\WebInputSources.cs (1)
30var dependencyFullTypeNames = ImmutableArray.Create(WellKnownTypeNames.MicrosoftAspNetCoreMvcControllerBase,
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (1)
21ImmutableArray.Create(
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
167ImmutableArray.Create<ITypeBasedMarshallingInfoProvider>(
Analyzers\VtableIndexStubDiagnosticsAnalyzer.cs (1)
18ImmutableArray.Create(
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Analyzers\JSImportExportDiagnosticsAnalyzer.cs (1)
20private static readonly ImmutableArray<DiagnosticDescriptor> s_sharedDescriptors = ImmutableArray.Create(
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (1)
570ImmutableArray.Create(
Analyzers\LibraryImportDiagnosticsAnalyzer.cs (1)
25ImmutableArray.Create(
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportDiagnosticsAnalyzer.cs (1)
24ImmutableArray.Create(
Microsoft.Interop.SourceGeneration (1)
DefaultMarshallingInfoParser.cs (1)
75ImmutableArray.Create<ITypeBasedMarshallingInfoProvider>(
Roslyn.Diagnostics.Analyzers (3)
AbstractDoNotCopyValue.cs (1)
130public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule, UnsupportedUseRule, NoBoxingRule, NoUnboxingRule, NoFieldOfCopyableTypeRule, NoAutoPropertyRule);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
28numerals = ImmutableArray.Create("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
src\roslyn\src\Dependencies\Collections\Internal\HashHelpers.cs (1)
40private static readonly ImmutableArray<int> s_primes = ImmutableArray.Create(
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableArray.cs (3)
111return Create((ReadOnlySpan<T>)items); 122return Create(items); 134return Create((ReadOnlySpan<T>)items);
System.Reflection.Metadata (1)
System\Reflection\Metadata\BlobWriter.cs (1)
105return ImmutableArray.Create(_buffer.AsSpan(_start + start, byteCount));