2441 references to Empty
AndroidAppBuilder (10)
AndroidAppBuilder.cs (5)
29public ITaskItem[] Assemblies { get; set; } = Array.Empty<ITaskItem>(); 34public ITaskItem[] EnvironmentVariables { get; set; } = Array.Empty<ITaskItem>(); 39public ITaskItem[] ExtraLinkerArguments { get; set; } = Array.Empty<ITaskItem>(); 59public string[] NativeDependencies { get; set; } = Array.Empty<string>(); 69public string[] RuntimeComponents { get; set; } = Array.Empty<string>();
ApkBuilder.cs (5)
34public ITaskItem[] EnvironmentVariables { get; set; } = Array.Empty<ITaskItem>(); 38public string[] RuntimeComponents { get; set; } = Array.Empty<string>(); 41public ITaskItem[] Assemblies { get; set; } = Array.Empty<ITaskItem>(); 42public ITaskItem[] ExtraLinkerArguments { get; set; } = Array.Empty<ITaskItem>(); 43public string[] NativeDependencies { get; set; } = Array.Empty<string>();
AppleAppBuilder (5)
AppleAppBuilder.cs (5)
63public ITaskItem[] Assemblies { get; set; } = Array.Empty<ITaskItem>(); 68public ITaskItem[] ExtraLinkerArguments { get; set; } = Array.Empty<ITaskItem>(); 143public string[] RuntimeComponents { get; set; } = Array.Empty<string>(); 187public string[] NativeDependencies { get; set; } = Array.Empty<string>(); 246string[] excludes = Array.Empty<string>();
CodeGenerator (1)
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
Crossgen2Tasks (1)
ResolveReadyToRunCompilers.cs (1)
68var supportedRIDsList = supportedRuntimeIdentifiers == null ? Array.Empty<string>() : supportedRuntimeIdentifiers.Split(';');
dotnet-dev-certs (1)
ReporterEventListener.cs (1)
33var message = string.Format(CultureInfo.InvariantCulture, eventData.Message ?? "", eventData.Payload?.ToArray() ?? Array.Empty<object>());
dotnet-user-jwts (1)
Commands\ListCommand.cs (1)
61reporter.Output(JsonSerializer.Serialize(Array.Empty<Jwt>(), JwtSerializerOptions.Default));
GetDocument.Insider (4)
.packages\microsoft.extensions.hostfactoryresolver.sources\9.0.0-preview.5.24265.2\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (2)
181return buildMethod?.Invoke(builder, Array.Empty<object>()); 237_entryPoint.Invoke(null, Array.Empty<object>());
Commands\GetDocumentCommandWorker.cs (2)
35private static readonly object[] GetDocumentsArguments = Array.Empty<object>(); 159var services = serviceFactory(Array.Empty<string>());
http2cat (2)
src\Shared\Http2cat\Http2Utilities.cs (1)
123public static readonly byte[] _noData = Array.Empty<byte>();
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
IIS.FunctionalTests (2)
src\Shared\Http2cat\Http2Utilities.cs (1)
123public static readonly byte[] _noData = Array.Empty<byte>();
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
IIS.LongTests (2)
src\Shared\Http2cat\Http2Utilities.cs (1)
123public static readonly byte[] _noData = Array.Empty<byte>();
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
IIS.NewHandler.FunctionalTests (2)
src\Shared\Http2cat\Http2Utilities.cs (1)
123public static readonly byte[] _noData = Array.Empty<byte>();
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
IIS.NewShim.FunctionalTests (2)
src\Shared\Http2cat\Http2Utilities.cs (1)
123public static readonly byte[] _noData = Array.Empty<byte>();
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
IISExpress.FunctionalTests (2)
src\Shared\Http2cat\Http2Utilities.cs (1)
123public static readonly byte[] _noData = Array.Empty<byte>();
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
ILCompiler.DependencyAnalysisFramework (1)
ComputedStaticDependencyNode.cs (1)
70return Array.Empty<CombinedDependencyListEntry>();
illink (8)
ILLink.CodeFixProvider (1)
RequiresHelpers.cs (1)
17 return Array.Empty<SyntaxNode> ();
ILLink.RoslynAnalyzer (2)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
34 /// <see cref="System.Array.Empty{T}"/>
TrimAnalysis\TrimAnalysisVisitor.cs (1)
110 var elements = operation.Initializer?.ElementValues.Select (val => Visit (val, state)).ToArray () ?? System.Array.Empty<MultiValue> ();
InMemory.FunctionalTests (9)
Http2\Http2WebSocketTests.cs (5)
127await SendDataAsync(1, Array.Empty<byte>(), endStream: true); 218await SendDataAsync(1, Array.Empty<byte>(), endStream: true); 253await SendDataAsync(3, Array.Empty<byte>(), endStream: true); 357await SendDataAsync(1, Array.Empty<byte>(), endStream: true); 652await SendDataAsync(1, Array.Empty<byte>(), endStream: true);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (3)
183byte[] certData = RespondEmpty ? Array.Empty<byte>() : authority.GetCertData(); 201byte[] crl = RespondEmpty ? Array.Empty<byte>() : authority.GetCrl(); 236byte[] ocspResponse = RespondEmpty ? Array.Empty<byte>() : authority.BuildOcspResponse(certId, nonce);
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
467if ((string[])ctx.Request.Headers[headerName] != Array.Empty<string>())
Interop.FunctionalTests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
LibraryBuilder (5)
LibraryBuilder.cs (3)
52public ITaskItem[] ExtraSources { get; set; } = Array.Empty<ITaskItem>(); 57public ITaskItem[] ExtraLinkerArguments { get; set; } = Array.Empty<ITaskItem>(); 114public string[] ExportedSymbols { get; set; } = Array.Empty<string>();
src\tasks\Common\Builders\AppBuilderTask.cs (2)
27public ITaskItem[] Assemblies { get; set; } = Array.Empty<ITaskItem>(); 51public ITaskItem[] RuntimeLibraries { get; set; } = Array.Empty<ITaskItem>();
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
45filterCharacterRules: ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, Array.Empty<char>())));
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
39filterCharacterRules: ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, Array.Empty<char>())));
Microsoft.AspNetCore.App.Analyzers.Test (2)
Authorization\AddAuthorizationBuilderTests.cs (1)
740await VerifyCS.VerifyCodeFixAsync(fullSource, Array.Empty<DiagnosticResult>(), fullSource);
TestDiagnosticAnalyzer.cs (1)
168return GetDiagnosticsAsync(new[] { project }, Analyzer, Array.Empty<string>());
Microsoft.AspNetCore.Authentication.Core (2)
AuthenticationSchemeProvider.cs (2)
54private IEnumerable<AuthenticationScheme> _schemesCopy = Array.Empty<AuthenticationScheme>(); 55private IEnumerable<AuthenticationScheme> _requestHandlersCopy = Array.Empty<AuthenticationScheme>();
Microsoft.AspNetCore.Authorization (3)
AuthorizationFailure.cs (2)
27public IEnumerable<IAuthorizationRequirement> FailedRequirements { get; private set; } = Array.Empty<IAuthorizationRequirement>(); 32public IEnumerable<AuthorizationFailureReason> FailureReasons { get; private set; } = Array.Empty<AuthorizationFailureReason>();
AuthorizationHandlerContext.cs (1)
65=> (IEnumerable<AuthorizationFailureReason>?)_failedReasons ?? Array.Empty<AuthorizationFailureReason>();
Microsoft.AspNetCore.Authorization.Policy (3)
AuthorizationMiddleware.cs (3)
116var authorizeData = endpoint?.Metadata.GetOrderedMetadata<IAuthorizeData>() ?? Array.Empty<IAuthorizeData>(); 118var policies = endpoint?.Metadata.GetOrderedMetadata<AuthorizationPolicy>() ?? Array.Empty<AuthorizationPolicy>(); 122var requirementData = endpoint?.Metadata?.GetOrderedMetadata<IAuthorizationRequirementData>() ?? Array.Empty<IAuthorizationRequirementData>();
Microsoft.AspNetCore.Authorization.Test (3)
AuthorizationEndpointConventionBuilderExtensionsTests.cs (2)
38builder.RequireAuthorization(Array.Empty<IAuthorizeData>()); 76builder.RequireAuthorization(Array.Empty<string>());
ClaimsAuthorizationRequirementTests.cs (1)
45var requirement = CreateRequirement("Custom", Array.Empty<string>());
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManagerConfiguration.cs (1)
299false => Array.Empty<string>(),
Microsoft.AspNetCore.Components (19)
CascadingParameterState.cs (3)
42return Array.Empty<CascadingParameterState>(); 74return resultStates ?? (IReadOnlyList<CascadingParameterState>)Array.Empty<CascadingParameterState>(); 135return result?.ToArray() ?? Array.Empty<CascadingParameterInfo>();
ParameterView.cs (2)
22private static readonly ParameterView _empty = new ParameterView(ParameterViewLifetime.Unbound, _emptyFrames, 0, Array.Empty<CascadingParameterState>()); 30: this(lifetime, frames, ownerIndex, Array.Empty<CascadingParameterState>())
Rendering\ComponentState.cs (1)
205_cascadingParameters = (IReadOnlyList<CascadingParameterState>?)remainingCascadingParameters ?? Array.Empty<CascadingParameterState>();
RenderTree\ArrayBuilderSegment.cs (1)
34public T[] Array => _builder?.Buffer ?? System.Array.Empty<T>();
RenderTree\Renderer.cs (1)
94? Array.Empty<ICascadingValueSupplier>()
Routing\UrlValueConstraint.cs (1)
135return Array.Empty<T>();
src\Components\Shared\src\ArrayBuilder.cs (1)
37private static readonly T[] Empty = Array.Empty<T>();
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (5)
108_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 175_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 216_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 227_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 260_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
src\Http\Routing\src\ParameterPolicyActivator.cs (1)
112var arguments = argumentString?.Split(',', StringSplitOptions.TrimEntries) ?? Array.Empty<string>();
src\Http\Routing\src\Patterns\RouteParameterParser.cs (1)
22return new RoutePatternParameterPart(string.Empty, null, RoutePatternParameterKind.Standard, Array.Empty<RoutePatternParameterPolicyReference>());
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
540(IReadOnlyList<RoutePatternParameterPart>?)parameters ?? Array.Empty<RoutePatternParameterPart>(), 638parameterConstraints?.ToArray() ?? Array.Empty<RoutePatternParameterPolicyReference>(),
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
ComponentAnalyzerDiagnosticAnalyzerRunner.cs (2)
21return GetDiagnosticsAsync(sources: new[] { source }, Analyzer, Array.Empty<string>()); 26return GetDiagnosticsAsync(new[] { project }, Analyzer, Array.Empty<string>());
Microsoft.AspNetCore.Components.Endpoints (18)
Discovery\ComponentCollectionBuilder.cs (1)
56return Array.Empty<ComponentInfo>();
Discovery\PageCollectionBuilder.cs (1)
55return Array.Empty<PageComponentInfo>();
Discovery\PageComponentBuilder.cs (1)
17private IReadOnlyList<string> _routeTemplates = Array.Empty<string>();
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (15)
159Array.Empty<Type>(), 185Array.Empty<Type>(), 287Array.Empty<Type>(), 297Array.Empty<Type>(), 304Array.Empty<Type>(), 314Array.Empty<Type>(), 361Array.Empty<Expression>())); 379Array.Empty<Type>(), 398Array.Empty<Type>(), 406Array.Empty<Type>(), 461Array.Empty<Expression>())); 483Array.Empty<Type>(), 501Array.Empty<Type>(), 509Array.Empty<Type>(), 552Expression.Not(Expression.Call(readerParam, nameof(FormDataReader.CurrentPrefixExists), Array.Empty<Type>())),
Microsoft.AspNetCore.Components.Endpoints.Tests (26)
Binding\PrefixResolverTests.cs (1)
25var prefixResolver = new PrefixResolver(Array.Empty<FormKey>(), 1);
HotReloadServiceTests.cs (1)
193Array.Empty<PageComponentBuilder>(),
RazorComponentEndpointDataSourceTest.cs (16)
46Array.Empty<IComponentRenderMode>(), 74Array.Empty<IComponentRenderMode>(), 103Array.Empty<IComponentRenderMode>(), 138Array.Empty<IComponentRenderMode>(), 139Array.Empty<Type>(), 144Array.Empty<IComponentRenderMode>(), 150Array.Empty<IComponentRenderMode>(), 157Array.Empty<IComponentRenderMode>(), 158Array.Empty<Type>(), 163Array.Empty<IComponentRenderMode>(), 171Array.Empty<Type>() 176Array.Empty<IComponentRenderMode>(), 177Array.Empty<Type>(), 183Array.Empty<IComponentRenderMode>(), 192Array.Empty<Type>() 201Array.Empty<PageComponentBuilder>(),
RazorComponentEndpointFactoryTest.cs (8)
69Array.Empty<object>()), 72new ConfiguredRenderModesMetadata(Array.Empty<IComponentRenderMode>())); 97Array.Empty<object>()), 100new ConfiguredRenderModesMetadata(Array.Empty<IComponentRenderMode>())); 125Array.Empty<object>()), 128new ConfiguredRenderModesMetadata(Array.Empty<IComponentRenderMode>())); 157Array.Empty<object>()), 160new ConfiguredRenderModesMetadata(Array.Empty<IComponentRenderMode>()));
Microsoft.AspNetCore.Components.Forms (1)
ValidationMessageStore.cs (1)
65=> _messages.TryGetValue(fieldIdentifier, out var messages) ? messages : Array.Empty<string>();
Microsoft.AspNetCore.Components.Forms.Tests (2)
ExpressionFormatterTest.cs (2)
190public Person[] Children { get; init; } = Array.Empty<Person>(); 192public IReadOnlyList<string> Nicknames { get; init; } = Array.Empty<string>();
Microsoft.AspNetCore.Components.Performance (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.Components.QuickGrid (3)
GridItemsProviderRequest.cs (1)
69SortByColumn?.SortBy?.ToPropertyList(SortByAscending) ?? Array.Empty<SortedProperty>();
QuickGrid.razor.cs (2)
113private ICollection<TGridItem> _currentNonVirtualizedViewItems = Array.Empty<TGridItem>(); 389return GridItemsProviderResult.From(Array.Empty<TGridItem>(), 0);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
ComponentAnalyzerDiagnosticAnalyzerRunner.cs (2)
21return GetDiagnosticsAsync(sources: new[] { source }, Analyzer, Array.Empty<string>()); 26return GetDiagnosticsAsync(new[] { project }, Analyzer, Array.Empty<string>());
Microsoft.AspNetCore.Components.Server (3)
BlazorPack\BlazorPackHubProtocolWorker.cs (1)
46return Array.Empty<byte>();
src\Components\Shared\src\ArrayBuilder.cs (1)
37private static readonly T[] Empty = Array.Empty<T>();
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.Components.Server.Tests (17)
Circuits\CircuitClientProxyTest.cs (1)
26var sendTask = circuitClient.SendCoreAsync("test", Array.Empty<object>());
Circuits\RemoteJSDataStreamTest.cs (1)
125var chunk = Array.Empty<byte>();
Circuits\RemoteJSRuntimeTest.cs (2)
66jsRuntime.TestReceiveByteArray(id: 0, Array.Empty<byte>()); 70jsRuntime.TestReceiveByteArray(i, Array.Empty<byte>());
Circuits\ServerComponentDeserializerTest.cs (2)
428new ServerComponent(0, null, assembly, type, Array.Empty<ComponentParameter>(), Array.Empty<object>(), Guid.NewGuid()),
Circuits\TestCircuitHost.cs (1)
52handlers ??= Array.Empty<CircuitHandler>();
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
102var populatedMetadata = Array.Empty<string>();
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (9)
65message: new InvocationMessage("xyz", "method", Array.Empty<object>()), 69message: new InvocationMessage("method", Array.Empty<object>()), 81message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__" }), 89message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__", "__test_id2__" }), 147message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>()), 155message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>(), new string[] { "__test_id__" }), 239var expectedMessage = new InvocationMessage("xyz", "method", Array.Empty<object>()); 428new MessageSizeTestData("StreamInvocationMessage", new StreamInvocationMessage("1", "target", Array.Empty<object>()), 15), 429new MessageSizeTestData("StreamInvocationMessage_WithStreamId", new StreamInvocationMessage("1", "target", Array.Empty<object>(), new [] { "2" }), 17),
Microsoft.AspNetCore.Components.Tests (39)
RendererTest.cs (20)
260[1] = CreateRenderFactory(Array.Empty<int>()) 419[1] = CreateRenderFactory(Array.Empty<int>()) 463[1] = CreateRenderFactory(Array.Empty<int>()) 522[2] = CreateRenderFactory(Array.Empty<int>()), 523[3] = CreateRenderFactory(Array.Empty<int>()) 3567[0] = CreateRenderFactory(Array.Empty<int>()), 3600[0] = CreateRenderFactory(Array.Empty<int>()), 3633[0] = CreateRenderFactory(Array.Empty<int>()), 3671[0] = CreateRenderFactory(Array.Empty<int>()), 3753[0] = Array.Empty<NestedAsyncComponent.ExecutionAction>(), 3782[1] = CreateRenderFactory(Array.Empty<int>()), 3783[2] = CreateRenderFactory(Array.Empty<int>()), 3811[0] = Array.Empty<NestedAsyncComponent.ExecutionAction>(), 3838[1] = CreateRenderFactory(Array.Empty<int>()), 3839[2] = CreateRenderFactory(Array.Empty<int>()), 3893[1] = CreateRenderFactory(Array.Empty<int>()), 3949[1] = CreateRenderFactory(Array.Empty<int>()), 4061[0] = CreateRenderFactory(Array.Empty<int>()), 4095[0] = CreateRenderFactory(Array.Empty<int>()), 4137[0] = CreateRenderFactory(Array.Empty<int>()),
Routing\QueryParameterValueSupplierTest.cs (17)
135AssertKeyValuePair<bool[]>("BoolVals", Array.Empty<bool>()); 136AssertKeyValuePair<DateTime[]>("DateTimeVals", Array.Empty<DateTime>()); 137AssertKeyValuePair<decimal[]>("DecimalVals", Array.Empty<decimal>()); 138AssertKeyValuePair<double[]>("DoubleVals", Array.Empty<double>()); 139AssertKeyValuePair<float[]>("FloatVals", Array.Empty<float>()); 140AssertKeyValuePair<Guid[]>("GuidVals", Array.Empty<Guid>()); 141AssertKeyValuePair<int[]>("IntVals", Array.Empty<int>()); 142AssertKeyValuePair<long[]>("LongVals", Array.Empty<long>()); 143AssertKeyValuePair<bool?[]>("NullableBoolVals", Array.Empty<bool?>()); 144AssertKeyValuePair<DateTime?[]>("NullableDateTimeVals", Array.Empty<DateTime?>()); 145AssertKeyValuePair<decimal?[]>("NullableDecimalVals", Array.Empty<decimal?>()); 146AssertKeyValuePair<double?[]>("NullableDoubleVals", Array.Empty<double?>()); 147AssertKeyValuePair<float?[]>("NullableFloatVals", Array.Empty<float?>()); 148AssertKeyValuePair<Guid?[]>("NullableGuidVals", Array.Empty<Guid?>()); 149AssertKeyValuePair<int?[]>("NullableIntVals", Array.Empty<int?>()); 150AssertKeyValuePair<long?[]>("NullableLongVals", Array.Empty<long?>()); 151AssertKeyValuePair<string[]>("StringVals", Array.Empty<string>());
Routing\RouteTableFactoryTests.cs (1)
83var routeTable = routeTableFactory.Create(new RouteKey(GetType().Assembly, Array.Empty<Assembly>()), _serviceProvider);
Routing\TemplateParserTests.cs (1)
267Array.Empty<RoutePatternParameterPolicyReference>())
Microsoft.AspNetCore.Components.Web (9)
Forms\HtmlFieldPrefix.cs (1)
10private readonly LambdaExpression[] _rest = Array.Empty<LambdaExpression>();
Forms\Mapping\FormMappingContext.cs (2)
59return Array.Empty<FormMappingError>(); 74Array.Empty<FormMappingError>();
Web\DataTransfer.cs (3)
29public string[] Files { get; set; } = Array.Empty<string>(); 34public DataTransferItem[] Items { get; set; } = Array.Empty<DataTransferItem>(); 39public string[] Types { get; set; } = Array.Empty<string>();
Web\TouchEventArgs.cs (3)
19public TouchPoint[] Touches { get; set; } = Array.Empty<TouchPoint>(); 24public TouchPoint[] TargetTouches { get; set; } = Array.Empty<TouchPoint>(); 32public TouchPoint[] ChangedTouches { get; set; } = Array.Empty<TouchPoint>();
Microsoft.AspNetCore.Components.Web.Tests (5)
Forms\HtmlFieldPrefixTest.cs (2)
103public Person[] Children { get; init; } = Array.Empty<Person>(); 105public IReadOnlyList<string> Nicknames { get; init; } = Array.Empty<string>();
Forms\InputFileChangeEventArgsTest.cs (3)
11var emptySet = new InputFileChangeEventArgs(Array.Empty<IBrowserFile>()); 29var instance = new InputFileChangeEventArgs(Array.Empty<IBrowserFile>()); 45var instance = new InputFileChangeEventArgs(Array.Empty<IBrowserFile>());
Microsoft.AspNetCore.Components.WebAssembly (3)
HotReload\HotReloadAgent.cs (1)
241foreach (var updatedType in delta.UpdatedTypes ?? Array.Empty<int>())
src\Components\Shared\src\TransmitDataStreamToJS.cs (2)
28await runtime.InvokeVoidAsync(methodIdentifier, streamId, Array.Empty<byte>(), 0, null); 35await runtime.InvokeVoidAsync(methodIdentifier, streamId, Array.Empty<byte>(), 0, ex.Message);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyRazorComponentsBuilderExtensions.cs (1)
41: (IEnumerable<RouteEndpointBuilder>)Array.Empty<RouteEndpointBuilder>();
Microsoft.AspNetCore.Components.WebView (5)
src\Components\Shared\src\ArrayBuilder.cs (1)
37private static readonly T[] Empty = Array.Empty<T>();
src\Components\Shared\src\TransmitDataStreamToJS.cs (2)
28await runtime.InvokeVoidAsync(methodIdentifier, streamId, Array.Empty<byte>(), 0, null); 35await runtime.InvokeVoidAsync(methodIdentifier, streamId, Array.Empty<byte>(), 0, ex.Message);
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
83return new StaticWebAssetsDirectoryContents((files as IEnumerable<IFileInfo>) ?? Array.Empty<IFileInfo>()); 313public string[] ContentRoots { get; set; } = Array.Empty<string>();
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.DataProtection (2)
Managed\ManagedAuthenticatedEncryptor.cs (1)
72var EMPTY_ARRAY = Array.Empty<byte>();
RegistryPolicyResolver.cs (1)
104Array.Empty<IKeyEscrowSink>() :
Microsoft.AspNetCore.DataProtection.Abstractions (2)
src\Shared\WebEncoders\WebEncoders.cs (2)
66return Array.Empty<byte>(); 104return Array.Empty<byte>();
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingProviderTests.cs (1)
155var allKeys1 = Array.Empty<IKey>();
Microsoft.AspNetCore.Diagnostics (2)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
26return Array.Empty<StackFrameInfo>(); 36return Array.Empty<StackFrameInfo>();
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
Builder\HealthCheckApplicationBuilderExtensions.cs (3)
38UseHealthChecksCore(app, path, port: null, Array.Empty<object>()); 89UseHealthChecksCore(app, path, port, Array.Empty<object>()); 122UseHealthChecksCore(app, path, portAsInt, Array.Empty<object>());
Builder\HealthCheckEndpointRouteBuilderExtensions.cs (1)
65var args = options != null ? new[] { Options.Create(options) } : Array.Empty<object>();
Microsoft.AspNetCore.Diagnostics.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
src\Grpc\JsonTranscoding\src\Shared\Server\BindMethodFinder.cs (2)
60Array.Empty<ParameterModifier>()); 85Array.Empty<ParameterModifier>());
src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (2)
43return Array.Empty<string>(); 67return Array.Empty<string>();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
ServerStreamingServerCallHandlerTests.cs (1)
334serviceOptions.Interceptors.Add(interceptor.Type, interceptor.Args ?? Array.Empty<object>());
UnaryServerCallHandlerTests.cs (2)
1406interceptors.Add((typeof(TestInterceptor), Args: Array.Empty<object>())); 1837serviceOptions.Interceptors.Add(interceptor.Type, interceptor.Args ?? Array.Empty<object>());
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcDataContractResolver.cs (1)
69dataContract = DataContract.ForObject(messageDescriptor.ClrType, Array.Empty<DataProperty>(), extensionDataType: typeof(Value));
Microsoft.AspNetCore.Hosting (6)
Internal\WebHostOptions.cs (1)
80?? Array.Empty<string>();
src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
44errorDetails = Array.Empty<ExceptionDetails>();
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
26return Array.Empty<StackFrameInfo>(); 36return Array.Empty<StackFrameInfo>();
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
83return new StaticWebAssetsDirectoryContents((files as IEnumerable<IFileInfo>) ?? Array.Empty<IFileInfo>()); 313public string[] ContentRoots { get; set; } = Array.Empty<string>();
Microsoft.AspNetCore.Hosting.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
Microsoft.AspNetCore.Hosting.WindowsServices (1)
WebHostService.cs (1)
33internal void Start() => OnStart(Array.Empty<string>());
Microsoft.AspNetCore.Http (6)
FormCollection.cs (1)
22private static readonly string[] EmptyKeys = Array.Empty<string>();
HeaderDictionary.cs (2)
20private static readonly string[] EmptyKeys = Array.Empty<string>(); 21private static readonly StringValues[] EmptyValues = Array.Empty<StringValues>();
Internal\RequestCookieCollection.cs (1)
20private static readonly string[] EmptyKeys = Array.Empty<string>();
QueryCollection.cs (1)
22private static readonly string[] EmptyKeys = Array.Empty<string>();
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
74_arrayStorage = Array.Empty<KeyValuePair<TKey, TValue>>();
Microsoft.AspNetCore.Http.Abstractions (13)
Routing\EndpointMetadataCollection.cs (2)
27public static readonly EndpointMetadataCollection Empty = new EndpointMetadataCollection(Array.Empty<object>()); 124var results = matches == null ? Array.Empty<T>() : matches.ToArray();
Routing\RouteValueDictionary.cs (11)
108_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 154_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 158_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 175_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 192_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 208_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 216_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 227_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 244_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 260_arrayStorage = Array.Empty<KeyValuePair<string, object?>>(); 400_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
EndpointMetadataCollectionTests.cs (1)
54Assert.Same(Array.Empty<string>(), ordered);
RouteValueDictionaryTests.cs (2)
2110var array = Array.Empty<KeyValuePair<string, object?>>(); 2157Assert.Same(Array.Empty<KeyValuePair<string, object?>>(), value._arrayStorage);
Microsoft.AspNetCore.Http.Connections (3)
src\Shared\WebEncoders\WebEncoders.cs (2)
66return Array.Empty<byte>(); 104return Array.Empty<byte>();
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\ServerSentEventsMessageParser.cs (1)
65var payload = Array.Empty<byte>();
Microsoft.AspNetCore.Http.Connections.Tests (4)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (2)
96segments.Add(Array.Empty<byte>()); 100segments.Add(Array.Empty<byte>());
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
TestWebSocketConnectionFeature.cs (1)
222Buffer = Array.Empty<byte>(),
Microsoft.AspNetCore.Http.Extensions (28)
HeaderDictionaryTypeExtensions.cs (7)
154MediaTypeHeaderValue.TryParseList(value, out var result) ? result : Array.Empty<MediaTypeHeaderValue>(); 157StringWithQualityHeaderValue.TryParseList(value, out var result) ? result : Array.Empty<StringWithQualityHeaderValue>(); 160CookieHeaderValue.TryParseList(value, out var result) ? result : Array.Empty<CookieHeaderValue>(); 163EntityTagHeaderValue.TryParseList(value, out var result) ? result : Array.Empty<EntityTagHeaderValue>(); 166SetCookieHeaderValue.TryParseList(value, out var result) ? result : Array.Empty<SetCookieHeaderValue>(); 233return Array.Empty<T>(); 331return Array.Empty<T>();
RequestDelegateFactory.cs (1)
640return Array.Empty<Expression>();
RequestDelegateFactoryContext.cs (2)
57public Type[] ArgumentTypes { get; set; } = Array.Empty<Type>(); 59public Expression[] BoxedArgs { get; set; } = Array.Empty<Expression>();
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (15)
159Array.Empty<Type>(), 185Array.Empty<Type>(), 287Array.Empty<Type>(), 297Array.Empty<Type>(), 304Array.Empty<Type>(), 314Array.Empty<Type>(), 361Array.Empty<Expression>())); 379Array.Empty<Type>(), 398Array.Empty<Type>(), 406Array.Empty<Type>(), 461Array.Empty<Expression>())); 483Array.Empty<Type>(), 501Array.Empty<Type>(), 509Array.Empty<Type>(), 552Expression.Not(Expression.Call(readerParam, nameof(FormDataReader.CurrentPrefixExists), Array.Empty<Type>())),
src\Shared\ParameterBindingMethodCache.cs (1)
315return (constructor, Array.Empty<ConstructorParameter>());
src\Shared\PropertyAsParameterInfo.cs (2)
71return Array.Empty<ParameterInfo>(); 181_constructionParameterInfo?.GetCustomAttributesData() ?? Array.Empty<CustomAttributeData>());
Microsoft.AspNetCore.Http.Extensions.Tests (6)
ProblemDetailsServiceTest.cs (1)
135writers ??= Array.Empty<IProblemDetailsWriter>();
RequestDelegateFactoryTests.cs (3)
291RequestDelegateFactory.Create(([FromRoute] int id) => { }, new() { RouteParameterNames = Array.Empty<string>() })); 340new object?[] { (Action<HttpContext, int[]>)Store, new string[] {}, Array.Empty<int>() }, 1569RouteParameterNames = routeParam is not null ? new[] { paramName } : Array.Empty<string>()
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
95return Array.Empty<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint>();
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (1)
146new object[] { "int[]", new string[] {}, Array.Empty<int>() },
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
95return Array.Empty<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint>();
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\Endpoint.cs (1)
101public EndpointParameter[] Parameters { get; } = Array.Empty<EndpointParameter>();
Microsoft.AspNetCore.Http.Results (8)
ChallengeHttpResult.cs (2)
20: this(Array.Empty<string>()) 62public IReadOnlyList<string> AuthenticationSchemes { get; internal init; } = Array.Empty<string>();
ForbidHttpResult.cs (2)
20: this(Array.Empty<string>()) 41: this(Array.Empty<string>(), properties)
SignOutHttpResult.cs (1)
20: this(Array.Empty<string>())
TypedResults.cs (3)
41=> new(authenticationSchemes: authenticationSchemes ?? Array.Empty<string>(), properties); 59=> new(authenticationSchemes: authenticationSchemes ?? Array.Empty<string>(), properties); 85=> new(authenticationSchemes ?? Array.Empty<string>(), properties);
Microsoft.AspNetCore.Http.Results.Tests (2)
FileContentResultTests.cs (2)
45var result = Assert.IsAssignableFrom<IFileHttpResult>(new FileContentHttpResult(Array.Empty<byte>(), contentType) { FileDownloadName = downloadName }); 58var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new FileContentHttpResult(Array.Empty<byte>(), contentType) { FileDownloadName = downloadName });
Microsoft.AspNetCore.Http.Tests (5)
HeaderDictionaryTests.cs (3)
126Assert.Same(Array.Empty<string>(), (string[])emptyHeaders["Header1"]); 129Assert.Same(Array.Empty<string>(), (string[])asIHeaderDictionary["Header1"]); 130Assert.Same(Array.Empty<string>(), (string[])asIHeaderDictionary.Host);
QueryCollectionTests.cs (2)
17Assert.Same(Array.Empty<string>(), (string[])query["query1"]); 20Assert.Same(Array.Empty<string>(), (string[])QueryCollection.Empty["query1"]);
Microsoft.AspNetCore.HttpLogging (1)
W3CLoggingMiddleware.cs (1)
244var src = Array.Empty<char>();
Microsoft.AspNetCore.HttpLogging.Tests (6)
HttpLoggingMiddlewareTests.cs (6)
45Array.Empty<IHttpLoggingInterceptor>(), 55Array.Empty<IHttpLoggingInterceptor>(), 65Array.Empty<IHttpLoggingInterceptor>(), 85Array.Empty<IHttpLoggingInterceptor>(), 95Array.Empty<IHttpLoggingInterceptor>(), 1983interceptor == null ? Array.Empty<IHttpLoggingInterceptor>() : [interceptor],
Microsoft.AspNetCore.Identity (2)
SignInManager.cs (2)
165IList<Claim> claims = Array.Empty<Claim>(); 207IList<Claim> additionalClaims = Array.Empty<Claim>();
Microsoft.AspNetCore.Identity.FunctionalTests (1)
src\Identity\Extensions.Core\src\Base32.cs (1)
80return Array.Empty<byte>();
Microsoft.AspNetCore.Identity.Test (1)
SignInManagerTest.cs (1)
489.ReturnsAsync(hasValidProviders ? new string[1] { "Fake" } : Array.Empty<string>())
Microsoft.AspNetCore.InternalTesting.Tests (2)
TestableAssembly.cs (2)
77var factConstructor = typeof(FactAttribute).GetConstructor(Array.Empty<Type>()); 78var factBuilder = new CustomAttributeBuilder(factConstructor, Array.Empty<object>());
Microsoft.AspNetCore.Mvc.Abstractions (7)
Abstractions\ActionDescriptor.cs (4)
50public IList<object> EndpointMetadata { get; set; } = Array.Empty<ParameterDescriptor>(); 55public IList<ParameterDescriptor> Parameters { get; set; } = Array.Empty<ParameterDescriptor>(); 60public IList<ParameterDescriptor> BoundProperties { get; set; } = Array.Empty<ParameterDescriptor>(); 65public IList<FilterDescriptor> FilterDescriptors { get; set; } = Array.Empty<FilterDescriptor>();
ActionConstraints\ActionConstraintContext.cs (1)
17public IReadOnlyList<ActionSelectorCandidate> Candidates { get; set; } = Array.Empty<ActionSelectorCandidate>();
ModelBinding\ValueProviderResult.cs (1)
33public static ValueProviderResult None = new ValueProviderResult(Array.Empty<string>());
src\Shared\ParameterBindingMethodCache.cs (1)
315return (constructor, Array.Empty<ConstructorParameter>());
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
AddResponseTypeAttributeCodeFixAction.cs (1)
176return Array.Empty<(int, ITypeSymbol?)>();
SymbolApiResponseMetadataProvider.cs (1)
80return Array.Empty<DeclaredApiResponseMetadata>();
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
EndpointModelMetadata.cs (1)
53public override IReadOnlyList<object> ValidatorMetadata { get; } = Array.Empty<object>();
src\Shared\PropertyAsParameterInfo.cs (2)
71return Array.Empty<ParameterInfo>(); 181_constructionParameterInfo?.GetCustomAttributesData() ?? Array.Empty<CustomAttributeData>());
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (22)
EndpointMetadataApiDescriptionProviderTest.cs (22)
39var apiDescriptions = GetApiDescriptions(() => { }, "/", Array.Empty<string>()); 668var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 693var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 718var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 744var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 794var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 831var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 865var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 894var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 924var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 956var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 988var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1020var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1049var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1078var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1166var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1195var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1235var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1264var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1295var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1329var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>()); 1363var context = new ApiDescriptionProviderContext(Array.Empty<ActionDescriptor>());
Microsoft.AspNetCore.Mvc.Core (38)
ApiBehaviorOptions.cs (1)
17private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
ApplicationParts\RelatedAssemblyAttribute.cs (3)
59return Array.Empty<Assembly>(); 65return Array.Empty<Assembly>(); 76return Array.Empty<Assembly>();
Authorization\AuthorizeFilter.cs (1)
146var endpointAuthorizeData = endpoint.Metadata.GetOrderedMetadata<IAuthorizeData>() ?? Array.Empty<IAuthorizeData>();
BindAttribute.cs (1)
79=> original?.Split(',', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>();
ChallengeResult.cs (2)
20: this(Array.Empty<string>()) 51: this(Array.Empty<string>(), properties)
Filters\FilterFactory.cs (1)
121return Array.Empty<IFilterMetadata>();
ForbidResult.cs (2)
20: this(Array.Empty<string>()) 51: this(Array.Empty<string>(), properties)
Formatters\TextOutputFormatter.cs (1)
178return Array.Empty<StringWithQualityHeaderValue>();
Infrastructure\ActionSelectionTable.cs (1)
183return Array.Empty<TItem>();
Infrastructure\ControllerEndpointFilterInvocationContext.cs (1)
27Arguments = arguments ?? Array.Empty<object?>();
Infrastructure\DefaultApiProblemDetailsWriter.cs (1)
80Array.Empty<IOutputFormatter>(),
Infrastructure\ObjectResultExecutor.cs (1)
93(IList<IOutputFormatter>)result.Formatters ?? Array.Empty<IOutputFormatter>(),
ModelBinding\Binders\ArrayModelBinder.cs (1)
96return Array.Empty<TElement>();
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (2)
46return Array.Empty<IModelBinder>(); 50Array.Empty<IModelBinder>() :
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
94IReadOnlyList<IFormFile> IFormFileCollection.GetFiles(string name) => Array.Empty<IFormFile>();
ModelBinding\Binders\HeaderModelBinder.cs (1)
106var values = Array.Empty<string>();
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
511var parameters = defaultModelMetadata.BoundConstructor?.BoundConstructorParameters ?? Array.Empty<ModelMetadata>();
ModelBinding\Metadata\ModelAttributes.cs (2)
16internal static readonly ModelAttributes Empty = new ModelAttributes(Array.Empty<object>()); 71Attributes = Array.Empty<object>();
ModelBinding\PrefixContainer.cs (1)
32_sortedValues = Array.Empty<string>();
ModelBinding\Validation\ClientValidatorCache.cs (1)
124return Array.Empty<IClientModelValidator>();
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (1)
57_parameters = Array.Empty<ModelMetadata>();
ModelBinding\Validation\ValidatorCache.cs (1)
113return Array.Empty<IModelValidator>();
MvcOptions.cs (1)
28private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Routing\ActionConstraintMatcherPolicy.cs (1)
139IReadOnlyList<IActionConstraint>? constraints = Array.Empty<IActionConstraint>();
Routing\ActionEndpointDataSourceBase.cs (2)
124groupConventions: Array.Empty<Action<EndpointBuilder>>(), 126groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>());
Routing\ActionEndpointFactory.cs (4)
76perRouteConventions: Array.Empty<Action<EndpointBuilder>>(), 79perRouteFinallyConventions: Array.Empty<Action<EndpointBuilder>>()); 166perRouteConventions: Array.Empty<Action<EndpointBuilder>>(), 169perRouteFinallyConventions: Array.Empty<Action<EndpointBuilder>>());
SignOutResult.cs (2)
22: this(Array.Empty<string>()) 32: this(Array.Empty<string>(), properties)
Microsoft.AspNetCore.Mvc.Core.Test (124)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (5)
24var actionModel = new ActionModel(method, Array.Empty<object>()) 51var actionModel = new ActionModel(method, Array.Empty<object>()) 59var parameterModel = new ParameterModel(parameter, Array.Empty<object>()) 94var actionModel = new ActionModel(method, Array.Empty<object>()) 102var parameterModel = new ParameterModel(parameter, Array.Empty<object>())
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (3)
66var controller = new ControllerModel(typeof(object).GetTypeInfo(), Array.Empty<object>()); 67var action = new ActionModel(typeof(object).GetMethods()[0], Array.Empty<object>()) 166actionAttributes = actionAttributes ?? Array.Empty<object>();
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
33var context = new ApplicationModelProviderContext(Array.Empty<TypeInfo>());
ApplicationModels\RouteTokenTransformerConventionTest.cs (2)
18var model = new ActionModel(GetMethodInfo(), Array.Empty<object>()); 38var model = new ActionModel(GetMethodInfo(), Array.Empty<object>());
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (26)
18var controllerModel = new ControllerModel(controllerType.GetTypeInfo(), Array.Empty<object>()); 21var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>()); 25Array.Empty<object>()); 47var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>()) 51new ActionModel(actionMethod1, Array.Empty<object>()), 57var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>()) 61new ActionModel(actionMethod2, Array.Empty<object>()), 92Array.Empty<object>()); 95var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>()) 99new PropertyModel(property1, Array.Empty<object>()), 103new ActionModel(actionMethod1, Array.Empty<object>()) 115var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>()) 119new PropertyModel(property2, Array.Empty<object>()), 153app.Controllers.Add(new ControllerModel(typeof(HelloController).GetTypeInfo(), Array.Empty<object>())); 154app.Controllers.Add(new ControllerModel(typeof(WorldController).GetTypeInfo(), Array.Empty<object>())); 194new ControllerModel(typeof(HelloController).GetTypeInfo(), Array.Empty<object>()) 231var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 236new ActionModel(controllerType.GetMethod(nameof(HelloController.GetHello)), Array.Empty<object>()) 256var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 261new PropertyModel(controllerType.GetProperty(nameof(HelloController.Property1)), Array.Empty<object>()) 282var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 305var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 310var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>()) 317Array.Empty<object>()) 338var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 343var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>())
Infrastructure\ActionMethodExecutorTest.cs (16)
27Array.Empty<object>()); 53Array.Empty<object>()); 79Array.Empty<object>()); 104Array.Empty<object>()); 133Array.Empty<object>()); 162Array.Empty<object>()); 191Array.Empty<object>()); 216Array.Empty<object>()); 242Array.Empty<object>()); 268Array.Empty<object>()); 293Array.Empty<object>()); 319Array.Empty<object>()); 348Array.Empty<object>()); 377Array.Empty<object>()); 402Array.Empty<object>()); 431Array.Empty<object>());
Infrastructure\ActionSelectionTableTest.cs (1)
555var metadata = new List<object>(a.EndpointMetadata ?? Array.Empty<object>());
Infrastructure\ClientErrorResultFilterTest.cs (1)
117Array.Empty<IFilterMetadata>(),
Infrastructure\DefaultOutputFormatterSelectorTest.cs (9)
68Array.Empty<IOutputFormatter>(), 97Array.Empty<IOutputFormatter>(), 168Array.Empty<IOutputFormatter>(), 197Array.Empty<IOutputFormatter>(), 227Array.Empty<IOutputFormatter>(), 262Array.Empty<IOutputFormatter>(), 291Array.Empty<IOutputFormatter>(), 324Array.Empty<IOutputFormatter>(), 355Array.Empty<IOutputFormatter>(),
Infrastructure\ModelStateInvalidFilterTest.cs (1)
76Array.Empty<IFilterMetadata>(),
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (4)
306Array.Empty<IModelBinder>(), 350Array.Empty<IModelBinder>(), 394Array.Empty<IModelBinder>(), 447Array.Empty<IModelBinder>(),
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
351Array.Empty<IModelBinder>(),
ModelBinding\Binders\HeaderModelBinderTests.cs (2)
119{ "", typeof(string[]), Array.Empty<string>() }, 120{ null, typeof(string[]), Array.Empty<string>() },
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (6)
278new ModelAttributes(Array.Empty<object>(), null, parameterAttributes)); 301new ModelAttributes(Array.Empty<object>(), null, parameterAttributes)); 324new ModelAttributes(Array.Empty<object>(), null, parameterAttributes)); 347new ModelAttributes(Array.Empty<object>(), null, parameterAttributes)); 370new ModelAttributes(Array.Empty<object>(), null, parameterAttributes)); 394new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
ModelBinding\Metadata\DefaultModelMetadataTest.cs (9)
126var attributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), null); 163var attributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), null); 200var attributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), null); 358var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null)); 381var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null)); 402var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null));
ModelBinding\Metadata\SystemTextJsonValidationMetadataProviderTest.cs (11)
18var modelAttributes = new ModelAttributes(Array.Empty<object>(), new[] { new JsonPropertyNameAttribute(propertyName) }, Array.Empty<object>()); 36var modelAttributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), Array.Empty<object>()); 53var modelAttributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), Array.Empty<object>()); 71var modelAttributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), Array.Empty<object>());
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (1)
172var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null));
Routing\ActionEndpointDataSourceBaseTest.cs (2)
132Array.Empty<IActionDescriptorProvider>(), 133Array.Empty<IActionDescriptorChangeProvider>(),
Routing\ActionEndpointFactoryTest.cs (19)
277Array.Empty<ConventionalRouteEntry>(), 278conventions: Array.Empty<Action<EndpointBuilder>>(), 279groupConventions: Array.Empty<Action<EndpointBuilder>>(), 280finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 281groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(), 370var endpoints = CreateConventionalRoutedEndpoints(action, Array.Empty<ConventionalRouteEntry>(), createInertEndpoints: true); 383Array.Empty<ConventionalRouteEntry>(), 384conventions: Array.Empty<Action<EndpointBuilder>>(), 385groupConventions: Array.Empty<Action<EndpointBuilder>>(), 386finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 387groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(), 407conventions: Array.Empty<Action<EndpointBuilder>>(), 408groupConventions: Array.Empty<Action<EndpointBuilder>>(), 409finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 410groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(), 433conventions: Array.Empty<Action<EndpointBuilder>>(), 434groupConventions: Array.Empty<Action<EndpointBuilder>>(), 435finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 436groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
Routing\ControllerLinkGeneratorExtensionsTest.cs (1)
203new EndpointMetadataCollection(metadata ?? Array.Empty<object>()),
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (2)
317return new ValueTask<IReadOnlyList<Endpoint>>(Array.Empty<Endpoint>()); 356new Endpoint((ctx) => Task.CompletedTask, new EndpointMetadataCollection(Array.Empty<object>()), "ReplacedEndpoint")
Routing\PageLinkGeneratorExtensionsTest.cs (1)
173new EndpointMetadataCollection(metadata ?? Array.Empty<object>()),
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
MvcDataAnnotationsLocalizationOptions.cs (1)
15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (8)
DataAnnotationsMetadataProviderTest.cs (3)
1728=> new ModelAttributes(typeAttributes, Array.Empty<object>(), Array.Empty<object>()); 1733=> new ModelAttributes(typeAttributes, propertyAttributes, Array.Empty<object>());
DataAnnotationsModelValidatorProviderTest.cs (1)
118var result = provider.HasValidators(mockValidatable.GetType(), Array.Empty<object>());
DataMemberRequiredBindingMetadataProviderTest.cs (1)
143=> new ModelAttributes(typeAttributes, propertyAttributes, Array.Empty<object>());
ModelMetadataProviderTest.cs (3)
1068Array.Empty<object>(), 1069Array.Empty<object>())); 1085Array.Empty<object>()));
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
MvcXmlOptions.cs (1)
15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
InputFormatterTests.cs (4)
214var content = new ByteArrayContent(Array.Empty<byte>()); 259var content = new ByteArrayContent(Array.Empty<byte>()); 274var content = new ByteArrayContent(Array.Empty<byte>()); 289var content = new ByteArrayContent(Array.Empty<byte>());
RoutingEndpointRoutingTest.cs (2)
230Array.Empty<string>(), 247Array.Empty<string>(),
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ComplexTypeIntegrationTestBase.cs (1)
3229public TestInnerModel[] InnerModels { get; set; } = Array.Empty<TestInnerModel>();
Microsoft.AspNetCore.Mvc.Localization (2)
LocalizedHtmlString.cs (2)
22: this(name, value, isResourceNotFound: false, arguments: Array.Empty<object>()) 33: this(name, value, isResourceNotFound, arguments: Array.Empty<object>())
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
BsonTempDataSerializer.cs (1)
148return Array.Empty<byte>();
MvcNewtonsoftJsonOptions.cs (1)
19private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (8)
NewtonsoftJsonValidationMetadataProviderTest.cs (8)
20var modelAttributes = new ModelAttributes(Array.Empty<object>(), new[] { new JsonPropertyAttribute() { PropertyName = propertyName } }, Array.Empty<object>()); 38var modelAttributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), Array.Empty<object>()); 57var modelAttributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), Array.Empty<object>());
Microsoft.AspNetCore.Mvc.Razor (2)
Compilation\DefaultViewCompiler.cs (1)
114ExpirationTokens = Array.Empty<IChangeToken>(),
RazorViewEngine.cs (1)
415Array.Empty<ViewLocationCacheItem>();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
206ExpirationTokens = Array.Empty<IChangeToken>(), // Never expire because we can't recompile.
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
RuntimeViewCompilerTest.cs (1)
830precompiledViews = precompiledViews ?? Array.Empty<CompiledViewDescriptor>();
TestInfrastructure\TestRazorReferenceManager.cs (1)
17CompilationReferences = Array.Empty<MetadataReference>();
Microsoft.AspNetCore.Mvc.Razor.Test (3)
Compilation\DefaultRazorPageFactoryProviderTest.cs (1)
82ExpirationTokens = Array.Empty<IChangeToken>(),
Compilation\DefaultViewCompilerTest.cs (1)
120compiledViews = compiledViews ?? Array.Empty<CompiledViewDescriptor>();
RazorViewEngineTest.cs (1)
2045ExpirationTokens = changeTokens ?? Array.Empty<IChangeToken>(),
Microsoft.AspNetCore.Mvc.RazorPages (11)
ApplicationModels\PageApplicationModel.cs (1)
48EndpointMetadata = new List<object>(ActionDescriptor.EndpointMetadata ?? Array.Empty<object>());
Infrastructure\DefaultPageLoader.cs (4)
70routes: Array.Empty<ConventionalRouteEntry>(), 87groupConventions: Array.Empty<Action<EndpointBuilder>>(), 88finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 89groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
Infrastructure\DefaultPageModelActivatorProvider.cs (1)
33return (context) => factory(context.HttpContext.RequestServices, Array.Empty<object>());
Infrastructure\PageActionDescriptorProvider.cs (1)
104FilterDescriptors = Array.Empty<FilterDescriptor>(),
Infrastructure\PageActionEndpointDataSource.cs (1)
61Array.Empty<ConventionalRouteEntry>(),
Infrastructure\PageActionInvokerCache.cs (2)
133return Array.Empty<PageHandlerExecutorDelegate>(); 150return Array.Empty<PageHandlerBinderDelegate>();
RazorPagesOptions.cs (1)
15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Microsoft.AspNetCore.Mvc.RazorPages.Test (64)
ApplicationModels\TempDataFilterPageApplicationModelProviderTest.cs (1)
125PageApplicationModel = new PageApplicationModel(descriptor, handlerType.GetTypeInfo(), Array.Empty<object>()),
ApplicationModels\ViewDataAttributePageApplicationModelProviderTest.cs (1)
51PageApplicationModel = new PageApplicationModel(descriptor, handlerType.GetTypeInfo(), Array.Empty<object>()),
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (2)
48PageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()) 73PageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>())
Filters\PageHandlerResultFilterTest.cs (8)
33Array.Empty<IFilterMetadata>(), 38Array.Empty<IFilterMetadata>(), 74Array.Empty<IFilterMetadata>(), 79Array.Empty<IFilterMetadata>(), 116Array.Empty<IFilterMetadata>(), 121Array.Empty<IFilterMetadata>(), 148Array.Empty<IFilterMetadata>(), 153Array.Empty<IFilterMetadata>(),
Filters\PageSaveTempDataPropertyFilterTest.cs (3)
65Array.Empty<IFilterMetadata>(), 106Array.Empty<IFilterMetadata>(), 146Array.Empty<IFilterMetadata>(),
Filters\PageViewDataAttributeFilterTest.cs (2)
21var filter = new PageViewDataAttributeFilter(Array.Empty<LifecycleProperty>()); 40var filter = new PageViewDataAttributeFilter(Array.Empty<LifecycleProperty>());
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (19)
18var model = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 82var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 109var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 110var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>()); 137var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 168var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 169var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>()); 199var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 200var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>()); 201var parameterModel = new PageParameterModel(parameterInfo, Array.Empty<object>()); 230var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 231var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>()); 266var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 267var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>()); 268var parameterModel = new PageParameterModel(parameterInfo, Array.Empty<object>()); 299var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 300var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>()); 301var propertyModel = new PagePropertyModel(propertyInfo, Array.Empty<object>()); 329var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
Infrastructure\DefaultPageLoaderTest.cs (7)
25var actionDescriptors = new ActionDescriptorCollection(Array.Empty<ActionDescriptor>(), 1); 44var pageApplicationModel1 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 45var pageApplicationModel2 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 125var pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 173c.PageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 242var pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 308c.PageApplicationModel = new PageApplicationModel(c.ActionDescriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
129return new PageHandlerExecutingContext(pageContext, Array.Empty<IFilterMetadata>(), handlerMethodDescriptor, new Dictionary<string, object>(), new object());
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (1)
320return new ValueTask<IReadOnlyList<Endpoint>>(Array.Empty<Endpoint>());
Infrastructure\PageActionDescriptorProviderTest.cs (1)
380_models = models ?? Array.Empty<PageRouteModel>();
Infrastructure\PageActionInvokerProviderTest.cs (1)
488FilterDescriptors = Array.Empty<FilterDescriptor>(),
Infrastructure\PageActionInvokerTest.cs (2)
1538handlerBinders = handlerBinders ?? Array.Empty<PageHandlerBinderDelegate>(); 1571filters ?? Array.Empty<IFilterMetadata>(),
Infrastructure\PageHandlerPageFilterTest.cs (8)
27Array.Empty<IFilterMetadata>(), 33Array.Empty<IFilterMetadata>(), 75Array.Empty<IFilterMetadata>(), 81Array.Empty<IFilterMetadata>(), 118Array.Empty<IFilterMetadata>(), 124Array.Empty<IFilterMetadata>(), 151Array.Empty<IFilterMetadata>(), 157Array.Empty<IFilterMetadata>(),
PageModelTest.cs (5)
1853Array.Empty<IFilterMetadata>(), 1859Array.Empty<IFilterMetadata>(), 1887Array.Empty<IFilterMetadata>(), 1893Array.Empty<IFilterMetadata>(), 1922Array.Empty<IFilterMetadata>(),
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (2)
132Array.Empty<IActionDescriptorProvider>(), 133Array.Empty<IActionDescriptorChangeProvider>(),
Microsoft.AspNetCore.Mvc.TagHelpers (2)
GlobbingUrlBuilder.cs (2)
103return Array.Empty<string>(); 116return Array.Empty<string>();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
PartialTagHelperTest.cs (7)
625.Returns(ViewEngineResult.NotFound(partialName, searchedLocations: Array.Empty<string>())); 627.Returns(ViewEngineResult.NotFound(partialName, searchedLocations: Array.Empty<string>())); 769.Returns(ViewEngineResult.NotFound(partialName, Array.Empty<string>())); 771.Returns(ViewEngineResult.NotFound(partialName, Array.Empty<string>())); 813.Returns(ViewEngineResult.NotFound(partialName, Array.Empty<string>())); 815.Returns(ViewEngineResult.NotFound(partialName, Array.Empty<string>())); 817.Returns(ViewEngineResult.NotFound(fallbackName, Array.Empty<string>()));
SelectTagHelperTest.cs (1)
786var selectList = Array.Empty<SelectListItem>();
Microsoft.AspNetCore.Mvc.Testing (5)
.packages\microsoft.extensions.hostfactoryresolver.sources\9.0.0-preview.5.24265.2\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (2)
181return buildMethod?.Invoke(builder, Array.Empty<object>()); 237_entryPoint.Invoke(null, Array.Empty<object>());
WebApplicationFactory.cs (3)
359return Array.Empty<Assembly>(); 390var hostBuilder = HostFactoryResolver.ResolveHostBuilderFactory<IHostBuilder>(typeof(TEntryPoint).Assembly)?.Invoke(Array.Empty<string>()); 407var builder = WebHostBuilderFactory.CreateFromTypesAssemblyEntryPoint<TEntryPoint>(Array.Empty<string>());
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
Infrastructure\DefaultTempDataSerializer.cs (1)
132return Array.Empty<byte>();
MvcViewOptions.cs (1)
19private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
RemoteAttributeBase.cs (2)
29private string[] _additionalFieldsSplit = Array.Empty<string>(); 171=> original?.Split(',', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries) ?? Array.Empty<string>();
ValidationHelpers.cs (1)
79return Array.Empty<ModelStateEntry>();
ViewComponents\DefaultViewComponentInvoker.cs (1)
272return Array.Empty<string>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (7)
Filters\AntiforgeryApplicationModelProviderTest.cs (2)
161actionAttributes ??= Array.Empty<object>(); 162controllerAttributes ??= Array.Empty<object>();
Filters\ControllerViewDataAttributeFilterTest.cs (2)
18var filter = new ControllerViewDataAttributeFilter(Array.Empty<LifecycleProperty>()); 36var filter = new ControllerViewDataAttributeFilter(Array.Empty<LifecycleProperty>());
FormatWeekHelperTest.cs (3)
26Array.Empty<object>(), 27Array.Empty<object>(), 28Array.Empty<object>()));
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestRazorCompiledItem.cs (1)
36Metadata = metadata ?? Array.Empty<object>();
Microsoft.AspNetCore.OpenApi (5)
Schemas\JsonSchemaMapper\JsonSchemaGenerationContext.cs (1)
84provider?.GetCustomAttributes(type, inherit) ?? Array.Empty<object>();
src\Shared\ParameterBindingMethodCache.cs (1)
315return (constructor, Array.Empty<ConstructorParameter>());
src\Shared\PropertyAsParameterInfo.cs (2)
71return Array.Empty<ParameterInfo>(); 181_constructionParameterInfo?.GetCustomAttributesData() ?? Array.Empty<CustomAttributeData>());
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.OpenApi.Tests (3)
Services\OpenApiDocumentServiceTestsBase.cs (1)
112var apiDescriptionGroup = new ApiDescriptionGroup("testGroupName", (apiDescriptions ?? Array.Empty<ApiDescription>()).AsReadOnly());
Services\OpenApiGeneratorTests.cs (2)
27var operation = GetOpenApiOperation(() => { }, "/", Array.Empty<string>()); 1007metadataItems.AddRange(additionalMetadata ?? Array.Empty<object>());
Microsoft.AspNetCore.OutputCaching (5)
OutputCacheEntryFormatter.cs (1)
58string[] tagsArr = tags is { Count: > 0 } ? tags.ToArray() : Array.Empty<string>();
OutputCacheKeyProvider.cs (1)
344return Array.Empty<string>();
OutputCacheMiddleware.cs (1)
217policies = Array.Empty<IOutputCachePolicy>();
RecyclableArrayBufferWriter.cs (2)
28_buffer = Array.Empty<T>(); 36_buffer = Array.Empty<T>();
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (3)
EndToEndBenchmarks.cs (2)
22private byte[] _payloadOversized = Array.Empty<byte>(); 38_payloadOversized = Array.Empty<byte>();
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCachePoliciesTests.cs (2)
187IOutputCachePolicy policy = new VaryByHeaderPolicy(Array.Empty<string>()); 225IOutputCachePolicy policy = new VaryByQueryPolicy(Array.Empty<string>());
Microsoft.AspNetCore.RateLimiting.Tests (1)
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
Microsoft.AspNetCore.Razor (1)
TagHelpers\ReadOnlyTagHelperAttributeList.cs (1)
136attributes = matchedAttributes ?? (IReadOnlyList<TagHelperAttribute>)Array.Empty<TagHelperAttribute>();
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.RequestDecompression.Tests (5)
RequestDecompressionMiddlewareTests.cs (5)
198var decompressedBytes = Array.Empty<byte>(); 268var outputBytes = Array.Empty<byte>(); 438var decompressedBytes = Array.Empty<byte>(); 524var decompressedBytes = Array.Empty<byte>(); 688var outputContent = Array.Empty<byte>();
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.Routing (37)
ArrayBuilder.cs (1)
108return Array.Empty<T>();
Builder\EndpointRouteBuilderExtensions.cs (1)
215Array.Empty<object>();
CompositeEndpointDataSource.cs (1)
83return Array.Empty<Endpoint>();
EndpointNameAddressScheme.cs (1)
30return result ?? Array.Empty<Endpoint>();
Matching\AcceptsMatcherPolicy.cs (1)
176var contentTypes = endpoint.Metadata.GetMetadata<IAcceptsMetadata>()?.ContentTypes ?? Array.Empty<string>();
Matching\Candidate.cs (4)
54Slots = Array.Empty<KeyValuePair<string, object>>(); 55Captures = Array.Empty<(string parameterName, int segmentIndex, int slotIndex)>(); 57ComplexSegments = Array.Empty<(RoutePatternPathSegment pathSegment, int segmentIndex)>(); 58Constraints = Array.Empty<KeyValuePair<string, IRouteConstraint>>();
Matching\DfaMatcherBuilder.cs (10)
574Array.Empty<Candidate>(), 575Array.Empty<IEndpointSelectorPolicy>(), 669endpointSelectorPolicies?.ToArray() ?? Array.Empty<IEndpointSelectorPolicy>(), 709return Array.Empty<Candidate>(); 840Array.Empty<KeyValuePair<string, object>>(), 841Array.Empty<(string parameterName, int segmentIndex, int slotIndex)>(), 843Array.Empty<(RoutePatternPathSegment pathSegment, int segmentIndex)>(), 844Array.Empty<KeyValuePair<string, IRouteConstraint>>()); 911if (!nodeBuilder.AppliesToEndpoints(parent.Matches ?? (IReadOnlyList<Endpoint>)Array.Empty<Endpoint>())) 921var edges = nodeBuilder.GetEdges(parent.Matches ?? (IReadOnlyList<Endpoint>)Array.Empty<Endpoint>());
Matching\HttpMethodMatcherPolicy.cs (1)
301return metadata == null ? (Array.Empty<string>(), false) : (metadata.HttpMethods, metadata.AcceptCorsPreflight);
Matching\NegotiationMatcherPolicy.cs (1)
89values = Array.Empty<StringWithQualityHeaderValue>();
ParameterPolicyActivator.cs (1)
112var arguments = argumentString?.Split(',', StringSplitOptions.TrimEntries) ?? Array.Empty<string>();
Patterns\RouteParameterParser.cs (1)
22return new RoutePatternParameterPart(string.Empty, null, RoutePatternParameterKind.Standard, Array.Empty<RoutePatternParameterPolicyReference>());
Patterns\RoutePatternFactory.cs (5)
540(IReadOnlyList<RoutePatternParameterPart>?)parameters ?? Array.Empty<RoutePatternParameterPart>(), 638parameterConstraints?.ToArray() ?? Array.Empty<RoutePatternParameterPolicyReference>(), 782parameterPolicies: Array.Empty<RoutePatternParameterPolicyReference>()); 805parameterPolicies: Array.Empty<RoutePatternParameterPolicyReference>()); 837parameterPolicies: Array.Empty<RoutePatternParameterPolicyReference>());
RouteGroupBuilder.cs (3)
51GetGroupedEndpointsWithNullablePrefix(null, Array.Empty<Action<EndpointBuilder>>(), 52Array.Empty<Action<EndpointBuilder>>(), _routeGroupBuilder._outerEndpointRouteBuilder.ServiceProvider); 650 => Array.Empty<Endpoint>(),
RouteGroupContext.cs (2)
26public IReadOnlyList<Action<EndpointBuilder>> Conventions { get; init; } = Array.Empty<Action<EndpointBuilder>>(); 33public IReadOnlyList<Action<EndpointBuilder>> FinallyConventions { get; init; } = Array.Empty<Action<EndpointBuilder>>();
RouteValuesAddressScheme.cs (1)
59return Array.Empty<Endpoint>();
Template\TemplateBinder.cs (3)
79_requiredKeys = requiredKeys?.ToArray() ?? Array.Empty<string>(); 150constraints = constraintList?.ToArray() ?? Array.Empty<(string, IRouteConstraint)>(); 151parameterTransformers = parameterTransformerList?.ToArray() ?? Array.Empty<(string, IOutboundParameterTransformer)>();
Microsoft.AspNetCore.Routing.FunctionalTests (1)
RouteHandlerTest.cs (1)
121public override IReadOnlyList<Endpoint> Endpoints => Array.Empty<Endpoint>();
Microsoft.AspNetCore.Routing.Microbenchmarks (5)
EndpointRoutingBenchmarkBase.cs (1)
112var endpointMetadata = new List<object>(metadata ?? Array.Empty<object>());
Matching\TrivialMatcher.cs (1)
45return Array.Empty<Candidate>();
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcher.cs (1)
110return Array.Empty<Candidate>();
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
Microsoft.AspNetCore.Routing.Tests (48)
CompositeEndpointDataSourceTest.cs (7)
44var conventions = Array.Empty<Action<EndpointBuilder>>(); 45var finallyConventions = Array.Empty<Action<EndpointBuilder>>(); 72Conventions = Array.Empty<Action<EndpointBuilder>>(), 73FinallyConventions = Array.Empty<Action<EndpointBuilder>>(), 295var finallyConventions = Array.Empty<Action<EndpointBuilder>>(); 341var conventions = Array.Empty<Action<EndpointBuilder>>(); 459var conventions = Array.Empty<Action<EndpointBuilder>>();
EndpointFactory.cs (1)
35new EndpointMetadataCollection(metadata ?? Array.Empty<object>()),
LinkGeneratorTestBase.cs (1)
43return CreateLinkGenerator(configureServices, new[] { new DefaultEndpointDataSource(endpoints ?? Array.Empty<Endpoint>()) });
LinkParserTestBase.cs (1)
35return CreateLinkParser(configureServices, new[] { new DefaultEndpointDataSource(endpoints ?? Array.Empty<Endpoint>()) });
Matching\AcceptsMatcherPolicyTest.cs (10)
35CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())), 53CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())), 72CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()), 106CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()), 124CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()), 143CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())), 165CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())), 340CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())), 409CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())), 616$"test: {template} - {string.Join(", ", consumesMetadata?.ContentTypes ?? Array.Empty<string>())}");
Matching\BarebonesMatcher.cs (1)
110return Array.Empty<Candidate>();
Matching\CandidateSetTest.cs (3)
128candidateSet.ExpandEndpoint(0, Array.Empty<Endpoint>(), comparer); 321var ex = Assert.Throws<InvalidOperationException>(() => candidateSet.ExpandEndpoint(0, Array.Empty<Endpoint>(), comparer)); 384var dataSource = new CompositeEndpointDataSource(Array.Empty<EndpointDataSource>());
Matching\DfaMatcherBuilderTest.cs (1)
3502var dataSource = new CompositeEndpointDataSource(Array.Empty<EndpointDataSource>());
Matching\HostMatcherPolicyIntegrationTestBase.cs (1)
410metadata.Add(new HostAttribute(hosts ?? Array.Empty<string>()));
Matching\HostMatcherPolicyTest.cs (8)
32CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 50CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 69CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 124CreateEndpoint("/", new HostAttribute(Array.Empty<string>()), new DynamicEndpointMetadata()), 142CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 161CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 202CreateEndpoint("/", new HostAttribute(Array.Empty<string>())), 276$"test: {template} - {string.Join(", ", hostMetadata?.Hosts ?? Array.Empty<string>())}");
Matching\HttpMethodMatcherPolicyIntegrationTestBase.cs (1)
392metadata.Add(new HttpMethodMetadata(httpMethods ?? Array.Empty<string>(), acceptCorsPreflight));
Matching\HttpMethodMatcherPolicyTest.cs (10)
33CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())), 51CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())), 70CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())), 104CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()), 122CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()), 141CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())), 185CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())), 188CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())), 230CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())), 233CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>(), acceptCorsPreflight: true)),
Matching\MatcherAssert.cs (2)
43keys = keys ?? Array.Empty<string>(); 44values = values ?? Array.Empty<string>();
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
Microsoft.AspNetCore.Security.Microbenchmarks (2)
AuthorizationPolicyBenchmark.cs (1)
23return AuthorizationPolicy.CombineAsync(_policyProvider, Array.Empty<IAuthorizeData>());
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.Server.HttpSys (2)
AuthenticationManager.cs (1)
147return Array.Empty<string>();
src\Shared\HttpSys\RequestProcessing\HeaderParser.cs (1)
10internal static IEnumerable<string> Empty = Array.Empty<string>();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
ResponseBodyTests.cs (1)
418await body.WriteAsync(Array.Empty<byte>());
src\Shared\Http2cat\Http2Utilities.cs (1)
123public static readonly byte[] _noData = Array.Empty<byte>();
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.Server.IIS (5)
Core\ServerAddressesFeature.cs (1)
10public ICollection<string> Addresses { get; set; } = Array.Empty<string>();
src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
44errorDetails = Array.Empty<ExceptionDetails>();
src\Shared\HttpSys\RequestProcessing\HeaderParser.cs (1)
10internal static IEnumerable<string> Empty = Array.Empty<string>();
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
26return Array.Empty<StackFrameInfo>(); 36return Array.Empty<StackFrameInfo>();
Microsoft.AspNetCore.Server.Kestrel.Core (3)
KestrelServer.cs (1)
36Array.Empty<IMultiplexedConnectionListenerFactory>(),
KestrelServerOptions.cs (1)
82return Array.Empty<ListenOptions>();
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (21)
HttpRequestHeadersTests.cs (5)
109Assert.Same(Array.Empty<string>(), (string[])headers["custom"]); 110Assert.Same(Array.Empty<string>(), (string[])headers["host"]); 111Assert.Same(Array.Empty<string>(), (string[])headers["Content-Length"]); 114Assert.Same(Array.Empty<string>(), (string[])headers.Host); 115Assert.Same(Array.Empty<string>(), (string[])headers.AltSvc);
KestrelServerTests.cs (5)
322Array.Empty<IMultiplexedConnectionListenerFactory>())); 333Array.Empty<IMultiplexedConnectionListenerFactory>()); 347Array.Empty<IMultiplexedConnectionListenerFactory>()); 367Array.Empty<IMultiplexedConnectionListenerFactory>()); 737using (var server = new KestrelServerImpl(new[] { new MockTransportFactory() }, Array.Empty<IMultiplexedConnectionListenerFactory>(), new HttpsConfigurationService(), testContext))
SniOptionsSelectorTests.cs (3)
474ServerCertificate = new X509Certificate2(Array.Empty<byte>()), 561ServerCertificate = new X509Certificate2(Array.Empty<byte>()), 852ServerCertificate = new X509Certificate2(Array.Empty<byte>()),
src\Servers\Kestrel\shared\test\RevocationResponder.cs (3)
183byte[] certData = RespondEmpty ? Array.Empty<byte>() : authority.GetCertData(); 201byte[] crl = RespondEmpty ? Array.Empty<byte>() : authority.GetCrl(); 236byte[] ocspResponse = RespondEmpty ? Array.Empty<byte>() : authority.BuildOcspResponse(certId, nonce);
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (2)
96segments.Add(Array.Empty<byte>()); 100segments.Add(Array.Empty<byte>());
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (1)
841decoder.Decode(Array.Empty<byte>(), endHeaders: false, handler: handler);
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (1)
348decoder.Decode(Array.Empty<byte>(), endHeaders: false, handler: handler);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
KestrelConfigurationLoaderTests.cs (1)
683.Concat(password != null ? new[] { new KeyValuePair<string, string>("Certificates:Default:Password", password) } : Array.Empty<KeyValuePair<string, string>>()))
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
Microsoft.AspNetCore.Session (2)
NoOpSessionStore.cs (2)
20public ICollection<EncodedKey> Keys { get; } = Array.Empty<EncodedKey>(); 22public ICollection<byte[]> Values { get; } = Array.Empty<byte[]>();
Microsoft.AspNetCore.Shared.Tests (10)
AdaptiveCapacityDictionaryTests.cs (1)
1319Assert.Same(Array.Empty<KeyValuePair<string, object?>>(), value._arrayStorage);
runtime\Http2\HPackDecoderTest.cs (1)
841decoder.Decode(Array.Empty<byte>(), endHeaders: false, handler: handler);
runtime\Http3\QPackDecoderTest.cs (1)
348decoder.Decode(Array.Empty<byte>(), endHeaders: false, handler: handler);
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
74_arrayStorage = Array.Empty<KeyValuePair<TKey, TValue>>();
src\Shared\HttpSys\RequestProcessing\HeaderParser.cs (1)
10internal static IEnumerable<string> Empty = Array.Empty<string>();
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
26return Array.Empty<StackFrameInfo>(); 36return Array.Empty<StackFrameInfo>();
src\Shared\WebEncoders\WebEncoders.cs (2)
66return Array.Empty<byte>(); 104return Array.Empty<byte>();
Microsoft.AspNetCore.SignalR.Client.Core (7)
HubConnection.cs (1)
793: Array.Empty<object?>();
HubConnectionExtensions.InvokeAsync.cs (1)
27return hubConnection.InvokeCoreAsync(methodName, Array.Empty<object?>(), cancellationToken);
HubConnectionExtensions.InvokeAsyncGeneric.cs (1)
31return hubConnection.InvokeCoreAsync<TResult>(methodName, Array.Empty<object>(), cancellationToken);
HubConnectionExtensions.SendAsync.cs (1)
27return hubConnection.SendCoreAsync(methodName, Array.Empty<object>(), cancellationToken);
HubConnectionExtensions.StreamAsChannelAsync.cs (1)
32return hubConnection.StreamAsChannelCoreAsync<TResult>(methodName, Array.Empty<object>(), cancellationToken);
HubConnectionExtensions.StreamAsync.cs (1)
29return hubConnection.StreamAsyncCore<TResult>(methodName, Array.Empty<object>(), cancellationToken);
Internal\SerializedHubMessage.cs (1)
84return Array.Empty<SerializedMessage>();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
VersionJsonHubProtocol.cs (1)
44message = new InvocationMessage("NewProtocolMethodServer", Array.Empty<object>());
Microsoft.AspNetCore.SignalR.Client.Tests (25)
HttpConnectionTests.cs (1)
94var clientCertificate = new X509Certificate(Array.Empty<byte>());
HubClientProxyGeneratorTests.cs (8)
77Array.Empty<Type>(), 101Array.Empty<Type>(), 128Array.Empty<Type>(), 152Array.Empty<Type>(), 181Array.Empty<Type>(), 229Array.Empty<Type>(), 245await noArgFunc(Array.Empty<object>(), noArgState); 259await returnTaskFunc(Array.Empty<object>(), returnTaskState);
HubConnectionTests.cs (7)
865_ = await hubConnection.StreamAsChannelCoreAsync("stream", typeof(int), Array.Empty<object>(), default); 866_ = await hubConnection.InvokeCoreAsync("test", typeof(int), Array.Empty<object>(), default); 867await hubConnection.SendCoreAsync("test2", Array.Empty<object>(), default); 868_ = hubConnection.StreamAsyncCore<int>("stream2", Array.Empty<object>(), default); 875mockConnection.Verify(c => c.InvokeCoreAsync("test", typeof(int), Array.Empty<object>(), It.IsAny<CancellationToken>()), Times.Once); 876mockConnection.Verify(c => c.SendCoreAsync("test2", Array.Empty<object>(), It.IsAny<CancellationToken>()), Times.Once); 877mockConnection.Verify(c => c.StreamAsyncCore<int>("stream2", Array.Empty<object>(), It.IsAny<CancellationToken>()), Times.Once);
HubServerProxyGeneratorTests.cs (8)
60Array.Empty<object>(), 82Array.Empty<object>(), 105Array.Empty<object>(), 184Array.Empty<object>(), 191Array.Empty<object>(), 197Array.Empty<object>(), 315Array.Empty<object>(), 322Array.Empty<object>(),
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.SignalR.Common (3)
Protocol\HubMethodInvocationMessage.cs (2)
113streamIds = string.Join(", ", StreamIds != null ? StreamIds.Select(id => id?.ToString()) : Array.Empty<string>()); 168streamIds = string.Join(", ", StreamIds != null ? StreamIds.Select(id => id?.ToString()) : Array.Empty<string>());
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.SignalR.Common.Tests (22)
Internal\Protocol\JsonHubProtocolTests.cs (1)
52var binder = new TestBinder(Array.Empty<Type>(), typeof(object));
Internal\Protocol\JsonHubProtocolTestsBase.cs (8)
35new JsonProtocolTestData("InvocationMessage_HasStreamArgument", new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__" }), true, true, "{\"type\":1,\"target\":\"Target\",\"arguments\":[],\"streamIds\":[\"__test_id__\"]}"), 37new JsonProtocolTestData("InvocationMessage_HasMultipleStreams", new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__", "__test_id2__" }), true, true, "{\"type\":1,\"target\":\"Target\",\"arguments\":[],\"streamIds\":[\"__test_id__\",\"__test_id2__\"]}"), 78new JsonProtocolTestData("StreamInvocationMessage_HasStreamArgument", new StreamInvocationMessage("123", "Target", Array.Empty<object>(), new string[] { "__test_id__" }), true, true, "{\"type\":4,\"invocationId\":\"123\",\"target\":\"Target\",\"arguments\":[],\"streamIds\":[\"__test_id__\"]}"), 194var binder = new TestBinder(Array.Empty<Type>(), typeof(object)); 205var binder = new TestBinder(Array.Empty<Type>(), typeof(object)); 209Assert.Same(Array.Empty<string>(), (message as InvocationMessage).StreamIds); 376new MessageSizeTestData("StreamInvocationMessage", new StreamInvocationMessage("1", "target", Array.Empty<object>()), 63), 377new MessageSizeTestData("StreamInvocationMessage_WithStreamId", new StreamInvocationMessage("1", "target", Array.Empty<object>(), new [] { "2" }), 81),
Internal\Protocol\MessagePackHubProtocolTestBase.cs (9)
65message: new InvocationMessage("xyz", "method", Array.Empty<object>()), 69message: new InvocationMessage("method", Array.Empty<object>()), 81message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__" }), 89message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__", "__test_id2__" }), 147message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>()), 155message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>(), new string[] { "__test_id__" }), 239var expectedMessage = new InvocationMessage("xyz", "method", Array.Empty<object>()); 428new MessageSizeTestData("StreamInvocationMessage", new StreamInvocationMessage("1", "target", Array.Empty<object>()), 15), 429new MessageSizeTestData("StreamInvocationMessage_WithStreamId", new StreamInvocationMessage("1", "target", Array.Empty<object>(), new [] { "2" }), 17),
Internal\Protocol\NewtonsoftJsonHubProtocolTests.cs (1)
50var binder = new TestBinder(Array.Empty<Type>(), typeof(object));
Internal\Protocol\Utf8BufferTextWriterTests.cs (1)
393return Array.Empty<byte>();
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (2)
96segments.Add(Array.Empty<byte>()); 100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.SignalR.Core (8)
ClientProxyExtensions.cs (2)
24return clientProxy.SendCoreAsync(method, Array.Empty<object>(), cancellationToken); 232return clientProxy.InvokeCoreAsync<T>(method, Array.Empty<object>(), cancellationToken);
HubOptionsSetup`T.cs (1)
32options.SupportedProtocols = new List<string>(_hubOptions.SupportedProtocols ?? Array.Empty<string>());
Internal\DefaultHubActivator.cs (1)
29hub = (THub)_objectFactory.Value(_serviceProvider, Array.Empty<object>());
Internal\HubFilterFactory.cs (2)
18_objectFactory = ActivatorUtilities.CreateFactory(filterType, Array.Empty<Type>()); 92filter = (IHubFilter)_objectFactory.Invoke(serviceProvider, Array.Empty<object>());
Internal\Proxies.cs (1)
167return _lifetimeManager.InvokeConnectionAsync<T>(_connectionId, method, args ?? Array.Empty<object?>(), cancellationToken);
SerializedHubMessage.cs (1)
79return Array.Empty<SerializedMessage>();
Microsoft.AspNetCore.SignalR.Microbenchmarks (27)
DefaultHubDispatcherBenchmark.cs (12)
215return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "Invocation", Array.Empty<object>())); 221return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationAsync", Array.Empty<object>())); 227return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationReturnValue", Array.Empty<object>())); 233return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationReturnAsync", Array.Empty<object>())); 239return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationValueTaskAsync", Array.Empty<object>())); 245return _dispatcher.DispatchMessageAsync(_connectionContext, new StreamInvocationMessage("123", "StreamChannelReader", Array.Empty<object>())); 251return _dispatcher.DispatchMessageAsync(_connectionContext, new StreamInvocationMessage("123", "StreamChannelReaderAsync", Array.Empty<object>())); 257return _dispatcher.DispatchMessageAsync(_connectionContext, new StreamInvocationMessage("123", "StreamChannelReaderValueTaskAsync", Array.Empty<object>())); 344await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStream), Array.Empty<object>(), streamIds: new string[] { "1" })); 355await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStreamIAsynEnumerable), Array.Empty<object>(), streamIds: new string[] { "1" })); 366await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStream), Array.Empty<object>(), streamIds: new string[] { "1" })); 380await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStreamIAsynEnumerable), Array.Empty<object>(), streamIds: new string[] { "1" }));
DefaultHubLifetimeManagerBenchmark.cs (9)
75return _hubLifetimeManager.SendAllAsync("MethodName", Array.Empty<object>()); 81return _hubLifetimeManager.SendGroupAsync(_groupNames[0], "MethodName", Array.Empty<object>()); 87return _hubLifetimeManager.SendGroupsAsync(_groupNames, "MethodName", Array.Empty<object>()); 93return _hubLifetimeManager.SendGroupExceptAsync(_groupNames[0], "MethodName", Array.Empty<object>(), _subsetConnectionIds); 99return _hubLifetimeManager.SendAllExceptAsync("MethodName", Array.Empty<object>(), _subsetConnectionIds); 105return _hubLifetimeManager.SendConnectionAsync(_connectionIds[0], "MethodName", Array.Empty<object>()); 111return _hubLifetimeManager.SendConnectionsAsync(_subsetConnectionIds, "MethodName", Array.Empty<object>()); 117return _hubLifetimeManager.SendUserAsync(_userIdentifiers[0], "MethodName", Array.Empty<object>()); 123return _hubLifetimeManager.SendUsersAsync(_userIdentifiers, "MethodName", Array.Empty<object>());
HubProtocolBenchmark.cs (1)
42_hubMessage = new InvocationMessage("Target", Array.Empty<object>());
RedisProtocolBenchmark.cs (1)
39_args = Array.Empty<object>();
ServerSentEventsBenchmark.cs (1)
47hubMessage = new InvocationMessage("Target", Array.Empty<object>());
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (2)
96segments.Add(Array.Empty<byte>()); 100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Protocol\JsonHubProtocol.cs (2)
190streamIds = newStreamIds?.ToArray() ?? Array.Empty<string>(); 873return arguments ?? Array.Empty<object>();
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (4)
Protocol\NewtonsoftJsonHubProtocol.cs (3)
190streamIds = newStreamIds?.ToArray() ?? Array.Empty<string>(); 833return arguments ?? Array.Empty<object?>(); 906return Array.Empty<object?>();
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
Internal\DefaultHubMessageSerializer.cs (1)
15var supportedProtocols = hubSupportedProtocols ?? globalSupportedProtocols ?? Array.Empty<string>();
Internal\RedisProtocol.cs (1)
256var serialized = reader.ReadBytes()?.ToArray() ?? Array.Empty<byte>();
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
222return Array.Empty<byte>();
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
DefaultHubMessageSerializerTests.cs (1)
135private static readonly InvocationMessage _testMessage = new InvocationMessage("target", Array.Empty<object>());
RedisProtocolTests.cs (1)
94private static readonly InvocationMessage _testMessage = new InvocationMessage("target", Array.Empty<object>());
Microsoft.AspNetCore.SignalR.Tests (25)
HubConnectionHandlerTests.ClientResult.cs (2)
244_ = await client.SendHubMessageAsync(new InvocationMessage("1", nameof(MethodHub.BlockingMethod), Array.Empty<object>())).DefaultTimeout(); 459var invocationId = await client.BeginUploadStreamAsync("1", nameof(MethodHub.GetClientResultWithStream), new[] { streamId }, Array.Empty<object>()).DefaultTimeout();
HubConnectionHandlerTests.cs (22)
2054await client.SendHubMessageAsync(new StreamInvocationMessage(invocationId, nameof(StreamingHub.BlockingStream), Array.Empty<object>())); 3190await client.SendHubMessageAsync(new StreamInvocationMessage("1", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).DefaultTimeout(); 3296await client.SendHubMessageAsync(new StreamInvocationMessage("123", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).DefaultTimeout(); 3298await client.SendHubMessageAsync(new StreamInvocationMessage("123", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).DefaultTimeout(); 3602await client.BeginUploadStreamAsync("invocationId", nameof(MethodHub.StreamDontRead), new[] { "id" }, Array.Empty<object>()).DefaultTimeout(); 3626await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), new[] { "id" }, Array.Empty<object>()); 3649await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadArray), new[] { "id" }, Array.Empty<object>()); 3681await client.BeginUploadStreamAsync("invocation_" + id, nameof(MethodHub.StreamingConcat), new[] { id }, Array.Empty<object>()); 3741await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadArrayAuth), new[] { "id" }, Array.Empty<object>()); 3777await client.BeginUploadStreamAsync("invocation", nameof(LongRunningHub.Upload), new[] { "id" }, Array.Empty<object>()); 3873await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, Array.Empty<object>()).DefaultTimeout(); 3924await client.BeginUploadStreamAsync("invocationId", nameof(MethodHub.TestTypeCastingErrors), new[] { "channelId" }, Array.Empty<object>()).DefaultTimeout(); 4000await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.TestCustomErrorPassing), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout(); 4020await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id", "id2" }, args: Array.Empty<object>()).DefaultTimeout(); 4039await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: Array.Empty<string>(), args: Array.Empty<object>()).DefaultTimeout(); 4062await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout(); 4104await client.BeginUploadStreamAsync(invocationId: null, nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout(); 4137await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadIgnoreItems), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout(); 4174await client.SendStreamInvocationAsync(nameof(MethodHub.StreamAndUploadIgnoreItems), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout(); 4421var messagePromise = client.StreamAsync(nameof(StreamingHub.StreamEcho), new[] { streamId }, Array.Empty<object>()).DefaultTimeout(); 4574await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadDoesWorkOnComplete), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
WebSocketsTransportTests.cs (1)
34var clientCertificate = new X509Certificate(Array.Empty<byte>());
Microsoft.AspNetCore.TestHost (3)
.packages\microsoft.extensions.hostfactoryresolver.sources\9.0.0-preview.5.24265.2\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (2)
181return buildMethod?.Invoke(builder, Array.Empty<object>()); 237_entryPoint.Invoke(null, Array.Empty<object>());
TestWebSocket.cs (1)
231Buffer = new ArraySegment<byte>(Array.Empty<byte>());
Microsoft.AspNetCore.TestHost.Tests (1)
ResponseBodyTests.cs (1)
146var zeroByteRead = stream.ReadAsync(Array.Empty<byte>(), 0, 0);
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.AspNetCore.WebUtilities (3)
HttpResponseStreamWriter.cs (1)
414values ??= Array.Empty<char>();
src\Shared\WebEncoders\WebEncoders.cs (2)
66return Array.Empty<byte>(); 104return Array.Empty<byte>();
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (3)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (2)
96segments.Add(Array.Empty<byte>()); 100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.WebUtilities.Tests (2)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (2)
96segments.Add(Array.Empty<byte>()); 100segments.Add(Array.Empty<byte>());
Microsoft.Build (61)
BackEnd\BuildManager\BuildManager.cs (2)
1514existingConfiguration = new BuildRequestConfiguration(GetNewConfigurationId(), new BuildRequestData(newInstance, Array.Empty<string>()), null /* use the instance's tools version */); 1854BuildRequestBlocker blocker = new BuildRequestBlocker(-1, Array.Empty<string>(), new[] { submission.BuildRequest });
BackEnd\Components\Communications\TranslatorExtensions.cs (1)
94var targetInstanceChild = (ITranslatable)parameterlessConstructor.Invoke(Array.Empty<object>());
BackEnd\Components\FileAccesses\FileAccessManager.cs (1)
31private Handlers[] _handlers = Array.Empty<Handlers>();
BackEnd\Components\ProjectCache\CacheContext.cs (1)
33: this(pluginSettings, fileSystem, requestedTargets: Array.Empty<string>(), graph, graphEntryPoints)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
661return Array.Empty<ProjectGraphEntryPoint>();
BackEnd\Components\RequestBuilder\Lookup.cs (1)
542groupFound ??= Array.Empty<ProjectItemInstance>();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
993results = Array.Empty<BuildResult>();
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
271results[i] = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null)); 293results[i] = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null));
BackEnd\Components\RequestBuilder\TargetEntry.cs (3)
362Array.Empty<TaskItem>(), 572TaskItem[] targetOutputItems = Array.Empty<TaskItem>(); 726_targetResult = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null));
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
1208toolsVersion ?? Array.Empty<string>(), 1209targetNames ?? Array.Empty<string>(),
BackEnd\Components\Scheduler\Scheduler.cs (1)
1654BuildRequest newRequest = new BuildRequest(parentRequest.BuildRequest.SubmissionId, BuildRequest.ResultsTransferNodeRequestId, parentRequest.BuildRequest.ConfigurationId, Array.Empty<string>(), null, parentRequest.BuildRequest.BuildEventContext, parentRequest.BuildRequest, parentRequest.BuildRequest.BuildRequestDataFlags);
BackEnd\Components\SdkResolution\SdkResolverService.cs (3)
397result ??= (SdkResult)resultFactory.IndicateFailure(new string[] { ResourceUtilities.FormatResourceStringStripCodeAndKeyword("SDKResolverReturnedNull", sdkResolver.Name) }, Array.Empty<string>()); 428warnings = results.SelectMany(r => r.Warnings ?? Array.Empty<string>()); 429errors = results.SelectMany(r => r.Errors ?? Array.Empty<string>());
BuildCheck\API\ConfigurationContext.cs (1)
34internal static ConfigurationContext Null { get; } = new(Array.Empty<CustomConfigurationData>());
Collections\ItemDictionary.cs (2)
123return Array.Empty<T>(); 209return result ?? Array.Empty<T>();
Construction\ProjectElementContainer.cs (3)
70? Array.Empty<T>() 80? Array.Empty<ProjectElement>() 104? Array.Empty<ProjectElement>()
Definition\ProjectCollection.cs (1)
2490return candidates ?? (IList<Project>)Array.Empty<Project>();
Definition\Toolset.cs (1)
734return Array.Empty<string>();
Definition\ToolsetRegistryReader.cs (1)
78string[] toolsVersionNames = Array.Empty<string>();
Evaluation\Expander.cs (7)
533return Array.Empty<T>(); 607return Array.Empty<T>(); 3278_arguments = Array.Empty<string>(); 5081functionArguments = Array.Empty<string>(); 5155functionArguments = Array.Empty<string>(); 5165functionArguments = Array.Empty<string>(); 5188functionArguments = Array.Empty<string>();
Evaluation\ItemSpec.cs (1)
375return matches ?? Array.Empty<string>();
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
53: Array.Empty<I>();
FileMatcher.cs (11)
234return Array.Empty<string>(); 269return Array.Empty<string>(); 357return Array.Empty<string>(); 362return Array.Empty<string>(); 413return Array.Empty<string>(); 418return Array.Empty<string>(); 2343return Array.Empty<string>(); 2350return Array.Empty<string>(); 2380return (Array.Empty<string>(), action, string.Empty); 2388return (Array.Empty<string>(), action, string.Empty); 2433return (Array.Empty<string>(), excludeAction, excludeSpec);
Instance\ImmutableProjectCollections\ImmutableItemDictionary.cs (2)
54return Array.Empty<T>(); 120return Array.Empty<T>();
Instance\ProjectInstance.cs (4)
2008string[] targets = (target == null) ? Array.Empty<string>() : new string[] { target }; 2505targets = Array.Empty<string>(); 2567return Array.Empty<TargetSpecification>(); 2584return Array.Empty<TargetSpecification>();
Logging\ParallelLogger\ParallelLoggerHelpers.cs (1)
149return Array.Empty<string>();
ReadOnlyEmptyDictionary.cs (2)
77Array.Empty<K>(); 87Array.Empty<V>();
Utilities\EngineFileUtilities.cs (1)
188string[] fileList = Array.Empty<string>();
Utilities\NuGetFrameworkWrapper.cs (1)
71DefaultCompatibilityProvider = NuGetFrameworkDefaultCompatibilityProvider.GetMethod("get_Instance").Invoke(null, Array.Empty<object>());
Utilities\RegistryKeyWrapper.cs (2)
131return Exists() ? WrappedKey.GetValueNames() : Array.Empty<string>(); 147return Exists() ? WrappedKey.GetSubKeyNames() : Array.Empty<string>();
Microsoft.Build.CommandLine.UnitTests (45)
CommandLineSwitches_Tests.cs (6)
705switches[CommandLineSwitches.ParameterizedSwitch.GraphBuild].ShouldBe(Array.Empty<string>()); 1165Array.Empty<ILogger>(), 1167Array.Empty<DistributedLoggerRecord>(), 1442MSBuildApp.ProcessBooleanSwitch(Array.Empty<string>(), defaultValue: true, resourceName: null).ShouldBeTrue(); 1444MSBuildApp.ProcessBooleanSwitch(Array.Empty<string>(), defaultValue: false, resourceName: null).ShouldBeFalse(); 1458yield return new object[] { Array.Empty<string>(), emptyOptions, null };
NodeStatus_Transition_Tests.cs (1)
115NodesFrame previousFrame = new(Array.Empty<NodeStatus>(), 0, 0);
XMake_Tests.cs (38)
1595string[] extensionsToIgnore = Array.Empty<string>(); 1597MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe(answer, StringCompareShould.IgnoreCase); 1612MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found" 1624MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found" 1636MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found" 1638extensionsToIgnore = Array.Empty<string>(); 1639MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found" 1653MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found" 1668MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found" 1682MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); 1696MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found" 1710MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles); 1719MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.nativeproj", StringCompareShould.IgnoreCase); // "Expected test.nativeproj to be only project found" 1724MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.proj", StringCompareShould.IgnoreCase); // "Expected test.proj to be only project found" 1729MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.nativeproj", StringCompareShould.IgnoreCase); // "Expected test.nativeproj to be only project found" 1734MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.sln", StringCompareShould.IgnoreCase); // "Expected test.sln to be only solution found" 1737extensionsToIgnore = Array.Empty<string>(); 1739MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.sln", StringCompareShould.IgnoreCase); // "Expected test.sln to be only solution found" 1742extensionsToIgnore = Array.Empty<string>(); 1744MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.proj", StringCompareShould.IgnoreCase); // "Expected test.proj to be only project found" 1747extensionsToIgnore = Array.Empty<string>(); 1749MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.proj", StringCompareShould.IgnoreCase); // "Expected test.proj to be only project found" 1752extensionsToIgnore = Array.Empty<string>(); 1754MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.sln", StringCompareShould.IgnoreCase); // "Expected test.sln to be only solution found" 1757extensionsToIgnore = Array.Empty<string>(); 1759MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.sln", StringCompareShould.IgnoreCase); // "Expected test.sln to be only solution found" 1762extensionsToIgnore = Array.Empty<string>(); 1764MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.sln", StringCompareShould.IgnoreCase); // "Expected test.sln to be only solution found" 1776MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.proj"); // "Expected test.proj to be only project found" 1790MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles); 1804MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles); 1818MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles); 1832MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles); 1846MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles); 1860MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles); 1871string[] projects = Array.Empty<string>(); 1874MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles); 2767TransientTestProjectWithFiles testProject = _env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>());
Microsoft.Build.Engine.OM.UnitTests (12)
Construction\ProjectRootElement_Tests.cs (3)
2006object document = typeof(ProjectRootElement).InvokeMember("XmlDocument", bindingFlags, null, project, Array.Empty<object>()); 2007object cache = document.GetType().InvokeMember("StringCache", bindingFlags, null, document, Array.Empty<object>()); 2008return (int)cache.GetType().InvokeMember("DocumentCount", bindingFlags, null, cache, Array.Empty<object>());
Definition\Project_Tests.cs (4)
3220var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>(), "u/x"); 3249var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>()); 3541var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>(), relativePathOfProjectFile); 3735var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>());
Definition\ProjectItem_Tests.cs (3)
1112var expectedInclude = includeSurvivesExclude ? new[] { include } : Array.Empty<string>(); 3628ObjectModelHelpers.AssertItemEvaluationFromProject(formattedProjectContents, Array.Empty<string>(), expectedInclude, expectedMetadata); 3661inputFiles: Array.Empty<string>(),
Instance\ProjectInstance_Tests.cs (2)
400BuildRequestData buildRequestData1 = new BuildRequestData(instance1, Array.Empty<string>()); 406BuildRequestData buildRequestData2 = new BuildRequestData(instance1, Array.Empty<string>());
Microsoft.Build.Engine.UnitTests (232)
BackEnd\BinaryTranslator_Tests.cs (1)
140HelperTestArray(Array.Empty<string>(), StringComparer.Ordinal);
BackEnd\BuildManager_Tests.cs (36)
204Array.Empty<string>(), 445var data = new BuildRequestData(project.CreateProjectInstance(), Array.Empty<string>(), _projectCollection.HostServices); 652var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 706MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 766MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 817MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 884MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 915MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 1081BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1091GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null); 1101BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1111GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null); 1136var targets = Array.Empty<string>(); 1200BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1213GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null); 1229new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1471BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1491BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1521BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1608BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1645BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1676BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion); 1816var data = new BuildRequestData(projectFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 1971var data = new BuildRequestData(projectInstance, Array.Empty<string>()); 1998var data2 = new BuildRequestData(projectInstance2, Array.Empty<string>()); 2132var data = new BuildRequestData(fileName, _projectCollection.GlobalProperties, MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 2216var data = new BuildRequestData(instance, Array.Empty<string>()); 2256var data = new BuildRequestData(instance, Array.Empty<string>(), null, BuildRequestDataFlags.None, new string[] { "VirtualProp" }); 2282outerBuildCacheDirectory = BuildAndCheckCache(outerBuildManager, Array.Empty<string>()); 3487private BuildRequestData GetBuildRequestData(string projectContents) => GetBuildRequestData(projectContents, Array.Empty<string>()); 3492private GraphBuildRequestData GetGraphBuildRequestData(string projectContents) => GetGraphBuildRequestData(projectContents, Array.Empty<string>()); 4139var data = new GraphBuildRequestData(graph, Array.Empty<string>()); 4184var data = new GraphBuildRequestData(new ProjectGraphEntryPoint(project1), Array.Empty<string>()); 4224var data = new GraphBuildRequestData(graph, Array.Empty<string>()); 4268var data = new GraphBuildRequestData(new ProjectGraphEntryPoint(project1), Array.Empty<string>()); 4287targetsToBuild: Array.Empty<string>(),
BackEnd\BuildRequest_Tests.cs (12)
38CreateNewBuildRequest(0, Array.Empty<string>()); 44BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>()); 47BuildRequest request2 = CreateNewBuildRequest(1, Array.Empty<string>()); 50BuildRequest request3 = CreateNewBuildRequest(-1, Array.Empty<string>()); 57BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>()); 60BuildRequest request2 = CreateNewBuildRequest(1, Array.Empty<string>()); 63BuildRequest request3 = CreateNewBuildRequest(-1, Array.Empty<string>()); 70BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>()); 83BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>()); 90BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>()); 101BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 111BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>());
BackEnd\BuildRequestConfiguration_Tests.cs (37)
44BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 52BuildRequestData config1 = new BuildRequestData("file", null, "toolsVersion", Array.Empty<string>(), null); 58BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 66BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 74BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 81BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 90BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 99BuildRequestData config1 = new BuildRequestData("file", null, "toolsVersion", Array.Empty<string>(), null); 105BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 109BuildRequestData data2 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 113BuildRequestData data3 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 121BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 125BuildRequestData data2 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 129BuildRequestData data3 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 139BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 147BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 157BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 165BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 174BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", props, "toolsVersion", Array.Empty<string>(), null), "2.0"); 182BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 195BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 203BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 204BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("File", new Dictionary<string, string>(), "ToolsVersion", Array.Empty<string>(), null), "2.0"); 205BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 206BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 207BuildRequestConfiguration config5 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 218BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 220BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 223BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 226BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 231BuildRequestData data = new BuildRequestData("file", props.ToDictionary(), "toolsVersion", Array.Empty<string>(), null); 246BuildRequestData data = new BuildRequestData("file", properties.ToDictionary(), "4.0", Array.Empty<string>(), null); 287BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0"); 307BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData("path", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null), "2.0"); 360BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0"); 460BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0"); 563var configuration = new BuildRequestConfiguration(new BuildRequestData(projectInstance, Array.Empty<string>()), MSBuildConstants.CurrentToolsVersion);
BackEnd\BuildRequestEngine_Tests.cs (5)
336BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 367BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 395BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 448BuildRequestData data = new BuildRequestData(Path.GetFullPath("TestFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 454BuildRequestData data2 = new BuildRequestData(Path.GetFullPath("OtherFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
BackEnd\BuildRequestEntry_Tests.cs (12)
25BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 26BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null); 47BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 95BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null); 117BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null); 147BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 184BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null); 200BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null); 217BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null); 241BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 261BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 272BuildRequest randomRequest = CreateNewBuildRequest(3, Array.Empty<string>());
BackEnd\BuildResult_Tests.cs (23)
33BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 40BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 72BuildRequest request = CreateNewBuildRequest(-1, Array.Empty<string>()); 76BuildRequest request2 = CreateNewBuildRequest(1, Array.Empty<string>()); 84BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 96BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 103result.AddResultsForTarget("bar", new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, new Exception()))); 106result.AddResultsForTarget("baz", new TargetResult(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult(new Exception()))); 109BuildRequest request2 = CreateNewBuildRequest(2, Array.Empty<string>()); 119BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 127BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 141BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 152BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 164BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 175BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 186BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 194BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 221BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 234BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 238BuildRequest request2 = CreateNewBuildRequest(2, Array.Empty<string>()); 248BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 259BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>()); 319result.AddResultsForTarget("omega", new TargetResult(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult(new ArgumentException("The argument was invalid"))));
BackEnd\CacheSerialization_Tests.cs (5)
55Array.Empty<ProjectItemInstance.TaskItem>(), 60Array.Empty<ProjectItemInstance.TaskItem>(), 65Array.Empty<ProjectItemInstance.TaskItem>(), 71Array.Empty<ProjectItemInstance.TaskItem>(), 77Array.Empty<ProjectItemInstance.TaskItem>(),
BackEnd\ConfigurationMetadata_Tests.cs (5)
62BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 88BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 104BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 113data = new BuildRequestData("file2", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 118data = new BuildRequestData("file", new Dictionary<string, string>(), "3.0", Array.Empty<string>(), null);
BackEnd\FullyQualifiedBuildRequest_Tests.cs (6)
19BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null); 22request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(data1, "2.0"), Array.Empty<string>(), true); 24BuildRequestData data3 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null); 25request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(data1, "2.0"), Array.Empty<string>(), false); 42FullyQualifiedBuildRequest request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null), "2.0"), null, true); 48BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
BackEnd\IntrinsicTask_Tests.cs (2)
3868BuildRequestEntry entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { "t" }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0")); 3903var entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { targetName }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
BackEnd\LoggingServicesLogMethod_Tests.cs (5)
839BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 865BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 904BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 945BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 1416BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
BackEnd\RequestBuilder_Tests.cs (3)
226BuildRequestConfiguration configuration = new BuildRequestConfiguration(1, new BuildRequestData("testName", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"); 271Array.Empty<string>(), 323return new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null));
BackEnd\Scheduler_Tests.cs (29)
75_defaultParentRequest = CreateBuildRequest(99, 99, Array.Empty<string>(), null); 79_scheduler.ReportRequestBlocked(1, new BuildRequestBlocker(-1, Array.Empty<string>(), new BuildRequest[] { _defaultParentRequest })); 110BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request }); 128BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request }); 152BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request }); 175BuildRequestBlocker blocker = new BuildRequestBlocker(-1, Array.Empty<string>(), new BuildRequest[] { request }); 206BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 }); 226BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 }); 249BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 }); 277BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 }); 301BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 }); 328BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 }); 354BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 }); 391_defaultParentRequest = CreateBuildRequest(99, 99, Array.Empty<string>(), null); 398List<ScheduleResponse> response = new List<ScheduleResponse>(_scheduler.ReportRequestBlocked(1, new BuildRequestBlocker(-1, Array.Empty<string>(), new BuildRequest[] { _defaultParentRequest, request1, request2, request3 }))); 432BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 }); 462BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 }); 492BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 }); 525BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 }); 549BuildRequestBlocker blocker = new BuildRequestBlocker(-1, Array.Empty<string>(), new[] { request1 }); 583_defaultParentRequest = CreateBuildRequest(99, 99, Array.Empty<string>(), null); 592List<ScheduleResponse> responses = new List<ScheduleResponse>(_scheduler.ReportRequestBlocked(1, new BuildRequestBlocker(-1, Array.Empty<string>(), new BuildRequest[] { _defaultParentRequest, request1, request2, request3 }))); 627BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 }); 646BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 }); 666BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3 }); 682BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request }); 733BuildRequestData data = new(projectFullPath, new Dictionary<string, string>(), "4.0", Array.Empty<string>(), null); 776result.AddResultsForTarget(target, new TargetResult(Array.Empty<TaskItem>(), workUnitResult)); 785return CreateBuildRequest(nodeRequestId, configId, Array.Empty<string>());
BackEnd\TargetBuilder_Tests.cs (1)
1644BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("testFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0");
BackEnd\TargetEntry_Tests.cs (6)
83BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 98BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 112BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 876Array.Empty<string>(), 1023BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 1041BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\TargetResult_Tests.cs (1)
28TargetResult result = new TargetResult(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult());
BackEnd\TaskBuilder_Tests.cs (1)
1231BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("testfile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0");
BackEnd\TaskBuilderTestTask.cs (1)
1020return Array.Empty<string>();
BackEnd\TaskExecutionHost_Tests.cs (5)
901ValidateOutputItems("StringArrayOutput", Array.Empty<ITaskItem>()); 912ValidateOutputItems("StringOutput", Array.Empty<ITaskItem>()); 921ValidateOutputItems("ItemArrayNullOutput", Array.Empty<ITaskItem>()); 932ValidateOutputItems("ArrayListOutput", Array.Empty<ITaskItem>()); 1286_bucket = new ItemBucket(Array.Empty<string>(), new Dictionary<string, string>(), new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0);
BackEnd\TaskHost_Tests.cs (1)
76BuildRequestConfiguration configuration = new BuildRequestConfiguration(1, new BuildRequestData("Nothing", new Dictionary<string, string>(), "4.0", Array.Empty<string>(), null), "2.0");
BackEnd\TaskRegistry_Tests.cs (1)
672Array.Empty<string>(),
BuildEventArgsSerialization_Tests.cs (8)
267e => string.Join(", ", e.RawArguments ?? Array.Empty<object>())); 309e => string.Join(", ", e.RawArguments ?? Array.Empty<object>())); 341e => string.Join(", ", e.RawArguments ?? Array.Empty<object>())); 382e => string.Join(", ", e.RawArguments ?? Array.Empty<object>())); 416e => string.Join(", ", e.RawArguments ?? Array.Empty<object>())); 459e => string.Join(", ", e.RawArguments ?? Array.Empty<object>())); 491e => string.Join(", ", e.RawArguments ?? Array.Empty<object>())); 621e => string.Join(", ", e.RawArguments ?? Array.Empty<object>()));
BuildResultUtilities.cs (2)
17return new TargetResult(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult()); 22return new TargetResult(Array.Empty<TaskItem>(), BuildResultUtilities.GetSuccessResult());
Construction\ProjectRootElement_Tests.cs (2)
75var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>()); 107var testFiles = env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>());
Construction\SolutionProjectGenerator_Tests.cs (2)
2065BuildRequestData request = new BuildRequestData(projectFilePath, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 2152BuildRequestData request = new BuildRequestData(projectFilePath, globalProperties, ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
Definition\ItemDataCollectionValue_Tests.cs (1)
52MakeArray(value).ShouldBe(Array.Empty<int>());
Evaluation\ExpressionShredder_Tests.cs (1)
446expected = Array.Empty<string>();
Evaluation\ItemEvaluation_Tests.cs (1)
118ObjectModelHelpers.AssertItems(Array.Empty<string>(), itemsForI2);
EvaluationProfiler_Tests.cs (1)
286Array.Empty<string>(),
FileMatcher_Tests.cs (4)
513ExpectedMatches = Array.Empty<string>(), 647return Array.Empty<string>(); 1227string[] files = Array.Empty<string>(); 1583Array.Empty<string>()); // Non matching files that shouldn't be touched
Graph\ProjectGraph_Tests.cs (8)
950CreateProjectFile(env: env, projectNumber: 3, projectReferences: Array.Empty<int>(), projectReferenceTargets: projectReferenceTargets); 981CreateProjectFile(env: env, projectNumber: 6, projectReferences: Array.Empty<int>(), projectReferenceTargets: projectReferenceTargets); 2276Array.Empty<int>(), 2409{4, Array.Empty<int>() } 2474{6, Array.Empty<int>() }, 2696IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>()); 2738IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>()); 2797IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>());
Instance\HostServices_Tests.cs (2)
393BuildRequestData data = new BuildRequestData(project, Array.Empty<string>(), hostServices); 396BuildRequestData data2 = new BuildRequestData(project, Array.Empty<string>(), hostServices);
Instance\ProjectTargetInstance_Internal_Tests.cs (2)
31new ReadOnlyCollection<ProjectTargetInstanceChild>(System.Array.Empty<ProjectTargetInstanceChild>()), 32new ReadOnlyCollection<ProjectOnErrorInstance>(System.Array.Empty<ProjectOnErrorInstance>())
Microsoft.Build.Framework (3)
FileClassifier.cs (1)
64private volatile IReadOnlyList<string> _knownImmutableDirectoriesSnapshot = Array.Empty<string>();
SegmentedArray`1.cs (1)
78_items = Array.Empty<T[]>();
SegmentedList`1.cs (1)
1121return Array.Empty<T>();
Microsoft.Build.Tasks.Core (78)
AssemblyDependency\Reference.cs (3)
43private string[] _scatterFiles = Array.Empty<string>(); 261_scatterFiles = Array.Empty<string>(); 503_scatterFiles = Array.Empty<string>();
AssemblyDependency\ResolveAssemblyReference.cs (21)
170private ITaskItem[] _assemblyFiles = Array.Empty<TaskItem>(); 171private ITaskItem[] _assemblyNames = Array.Empty<TaskItem>(); 172private ITaskItem[] _installedAssemblyTables = Array.Empty<TaskItem>(); 173private ITaskItem[] _installedAssemblySubsetTables = Array.Empty<TaskItem>(); 174private ITaskItem[] _fullFrameworkAssemblyTables = Array.Empty<TaskItem>(); 175private ITaskItem[] _resolvedSDKReferences = Array.Empty<TaskItem>(); 178private string[] _candidateAssemblyFiles = Array.Empty<string>(); 179private string[] _targetFrameworkDirectories = Array.Empty<string>(); 180private string[] _searchPaths = Array.Empty<string>(); 188private ITaskItem[] _resolvedFiles = Array.Empty<TaskItem>(); 189private ITaskItem[] _resolvedDependencyFiles = Array.Empty<TaskItem>(); 190private ITaskItem[] _relatedFiles = Array.Empty<TaskItem>(); 191private ITaskItem[] _satelliteFiles = Array.Empty<TaskItem>(); 192private ITaskItem[] _serializationAssemblyFiles = Array.Empty<TaskItem>(); 193private ITaskItem[] _scatterFiles = Array.Empty<TaskItem>(); 194private ITaskItem[] _copyLocalFiles = Array.Empty<TaskItem>(); 195private ITaskItem[] _suggestedRedirects = Array.Empty<TaskItem>(); 197private string[] _targetFrameworkSubsets = Array.Empty<string>(); 198private string[] _fullTargetFrameworkSubsetNames = Array.Empty<string>(); 214private string[] _fullFrameworkFolders = Array.Empty<string>(); 215private string[] _latestTargetFrameworkDirectories = Array.Empty<string>();
AssignCulture.cs (1)
42public ITaskItem[] Files { get; set; } = Array.Empty<ITaskItem>();
AssignTargetPath.cs (1)
31public ITaskItem[] Files { get; set; } = Array.Empty<ITaskItem>();
Copy.cs (3)
409DestinationFiles = Array.Empty<ITaskItem>(); 410CopiedFiles = Array.Empty<ITaskItem>(); 802DestinationFiles = Array.Empty<ITaskItem>();
CreateItem.cs (1)
59Include = Array.Empty<ITaskItem>();
CreateProperty.cs (1)
62Value = Array.Empty<string>();
Exec.cs (2)
176get => _outputs ?? Array.Empty<ITaskItem>(); 186public ITaskItem[] ConsoleOutput => !ConsoleToMSBuild ? Array.Empty<ITaskItem>() : _nonEmptyOutput.ToArray();
FileIO\ReadLinesFromFile.cs (1)
30public ITaskItem[] Lines { get; set; } = Array.Empty<ITaskItem>();
FileMatcher.cs (11)
234return Array.Empty<string>(); 269return Array.Empty<string>(); 357return Array.Empty<string>(); 362return Array.Empty<string>(); 413return Array.Empty<string>(); 418return Array.Empty<string>(); 2343return Array.Empty<string>(); 2350return Array.Empty<string>(); 2380return (Array.Empty<string>(), action, string.Empty); 2388return (Array.Empty<string>(), action, string.Empty); 2433return (Array.Empty<string>(), excludeAction, excludeSpec);
GenerateResource.cs (2)
443return Array.Empty<ITaskItem>(); 455return Array.Empty<ITaskItem>();
GetCompatiblePlatform.cs (1)
46AnnotatedProjects = Array.Empty<ITaskItem>();
GetInstalledSDKLocations.cs (2)
172item.SetMetadata(DirectoryRootsMetadataName, String.Join(";", SDKDirectoryRoots ?? Array.Empty<string>())); 173item.SetMetadata(ExtensionDirectoryRootsMetadataName, String.Join(";", SDKExtensionDirectoryRoots ?? Array.Empty<string>()));
GetReferenceAssemblyPaths.cs (2)
68return Array.Empty<string>(); 90return Array.Empty<string>();
GetSDKReferenceFiles.cs (4)
34private ITaskItem[] _resolvedSDKReferences = Array.Empty<ITaskItem>(); 167public ITaskItem[] References { get; private set; } = Array.Empty<ITaskItem>(); 173public ITaskItem[] RedistFiles { get; private set; } = Array.Empty<ITaskItem>(); 179public ITaskItem[] CopyLocalFiles { get; private set; } = Array.Empty<ITaskItem>();
ListOperators\FindUnderPath.cs (1)
29public ITaskItem[] Files { get; set; } = Array.Empty<ITaskItem>();
ListOperators\RemoveDuplicates.cs (2)
21public ITaskItem[] Inputs { get; set; } = Array.Empty<ITaskItem>(); 43Filtered = Array.Empty<ITaskItem>();
ManifestUtil\ComImporter.cs (2)
128CheckForUnknownSubKeys(key, Array.Empty<string>()); 147CheckForUnknownValues(key, Array.Empty<string>());
Move.cs (3)
96DestinationFiles = Array.Empty<ITaskItem>(); 97MovedFiles = Array.Empty<ITaskItem>(); 140DestinationFiles = Array.Empty<ITaskItem>();
NativeMethods.cs (1)
1337_gacDirectories = Array.Empty<string>();
ReadOnlyEmptyDictionary.cs (2)
77Array.Empty<K>(); 87Array.Empty<V>();
RedistList.cs (5)
218string[] redistListPaths = Array.Empty<string>(); 258string[] redistListPaths = (path == null) ? Array.Empty<string>() : GetRedistListPathsFromDisk(path); 275string[] redistListPaths = (referenceAssembliesPath == null) ? Array.Empty<string>() : GetRedistListPathsFromDisk(referenceAssembliesPath); 320return Array.Empty<string>(); 1070return Array.Empty<string>();
ResolveSDKReference.cs (3)
82private ITaskItem[] _sdkReferences = Array.Empty<ITaskItem>(); 87private ITaskItem[] _installedSDKs = Array.Empty<ITaskItem>(); 274ResolvedSDKReferences = Array.Empty<ITaskItem>();
SetRidAgnosticValueForProjects.cs (2)
14public ITaskItem[] Projects { get; set; } = Array.Empty<ITaskItem>(); 17public ITaskItem[] UpdatedProjects { get; set; } = Array.Empty<ITaskItem>();
Unzip.cs (1)
295patterns = Array.Empty<string>();
Microsoft.Build.Tasks.UnitTests (50)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (34)
927return Array.Empty<string>(); 1994return Array.Empty<AssemblyNameExtension>(); 2096return Array.Empty<AssemblyNameExtension>(); 2101return Array.Empty<AssemblyNameExtension>(); 2210return Array.Empty<AssemblyNameExtension>(); 2356return Array.Empty<AssemblyNameExtension>(); 2369return Array.Empty<AssemblyNameExtension>(); 2382return Array.Empty<AssemblyNameExtension>(); 2441return Array.Empty<AssemblyNameExtension>(); 2455return Array.Empty<AssemblyNameExtension>(); 2460return Array.Empty<AssemblyNameExtension>(); 2499return Array.Empty<AssemblyNameExtension>(); 2542return Array.Empty<string>(); 2547return Array.Empty<string>(); 2552return Array.Empty<string>(); 2557return Array.Empty<string>(); 2561return Array.Empty<string>(); 2565return Array.Empty<string>(); 2569return Array.Empty<string>(); 2574return Array.Empty<string>(); 2579return Array.Empty<string>(); 2584return Array.Empty<string>(); 2624return Array.Empty<string>(); 2680return Array.Empty<string>(); 2685return Array.Empty<string>(); 2709return Array.Empty<string>(); 2713return Array.Empty<string>(); 2718return Array.Empty<string>(); 2723return Array.Empty<string>(); 2738return Array.Empty<string>(); 2743return Array.Empty<string>(); 2758return Array.Empty<string>(); 2763return Array.Empty<string>(); 3034ITaskItem[] loadModeResolvedFiles = Array.Empty<TaskItem>();
CombinePath_Tests.cs (1)
179t.Paths = System.Array.Empty<ITaskItem>();
Copy_Tests.cs (1)
42new object[] { Array.Empty<ITaskItem>() },
Exec_Tests.cs (1)
543string commandLine = generateCommandLineCommandsMethod.Invoke(exec, Array.Empty<object>()) as string;
FindAppConfigFile_Tests.cs (2)
22f.SecondaryList = System.Array.Empty<ITaskItem>(); 91f.SecondaryList = System.Array.Empty<ITaskItem>();
FindInList_Tests.cs (1)
95f.List = Array.Empty<ITaskItem>();
GenerateBindingRedirects_Tests.cs (1)
325SuggestedRedirects = suggestedRedirects ?? Array.Empty<ITaskItem>(),
Hash_Tests.cs (1)
48var zeroLengthItemsHash = ExecuteHashTask(System.Array.Empty<ITaskItem>());
ResolveSDKReference_Tests.cs (4)
1201t.References = Array.Empty<TaskItem>(); 1309t.InstalledSDKs = Array.Empty<ITaskItem>(); 1332t.References = Array.Empty<TaskItem>(); 1473t.SDKReferences = Array.Empty<ITaskItem>();
WriteCodeFragment_Tests.cs (1)
209task.AssemblyAttributes = Array.Empty<TaskItem>(); // MSBuild sets an empty array
WriteLinesToFile_Tests.cs (3)
286Lines = Array.Empty<ITaskItem>(), // Test empty. 324ITaskItem[] lines = useNullLines ? null : Array.Empty<ITaskItem>(); 351ITaskItem[] lines = useNullLines ? null : Array.Empty<ITaskItem>();
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
1421targetsToBuild?.ToArray() ?? Array.Empty<string>(), 2100entryTargets ?? Array.Empty<string>(), 2122=> _buildManager.BuildRequest(new GraphBuildRequestData(graph, entryTargets ?? Array.Empty<string>()));
Microsoft.Build.Utilities.Core (16)
FileMatcher.cs (11)
234return Array.Empty<string>(); 269return Array.Empty<string>(); 357return Array.Empty<string>(); 362return Array.Empty<string>(); 413return Array.Empty<string>(); 418return Array.Empty<string>(); 2343return Array.Empty<string>(); 2350return Array.Empty<string>(); 2380return (Array.Empty<string>(), action, string.Empty); 2388return (Array.Empty<string>(), action, string.Empty); 2433return (Array.Empty<string>(), excludeAction, excludeSpec);
ReadOnlyEmptyDictionary.cs (2)
77Array.Empty<K>(); 87Array.Empty<V>();
ToolLocationHelper.cs (3)
1063return Array.Empty<string>(); 1084string[] contractWinMDs = Array.Empty<string>(); 1122return Array.Empty<string>();
Microsoft.Build.Utilities.UnitTests (10)
MuxLogger_Tests.cs (8)
59buildManager.Build(parameters, new BuildRequestData(project, Array.Empty<string>(), null)); 98buildManager.Build(parameters, new BuildRequestData(project, Array.Empty<string>(), null)); 113BuildSubmission submission = buildManager.PendBuildRequest(new BuildRequestData(project, Array.Empty<string>(), null)); 153BuildSubmission submission = buildManager.PendBuildRequest(new BuildRequestData(project, Array.Empty<string>(), null)); 206BuildSubmission submission1 = buildManager.PendBuildRequest(new BuildRequestData(project1, Array.Empty<string>(), null)); 210BuildSubmission submission2 = buildManager.PendBuildRequest(new BuildRequestData(project2, Array.Empty<string>(), null)); 259BuildSubmission submission = buildManager.PendBuildRequest(new BuildRequestData(project, Array.Empty<string>(), null)); 310BuildSubmission submission = buildManager.PendBuildRequest(new BuildRequestData(project, Array.Empty<string>(), null));
ToolLocationHelper_Tests.cs (2)
2746return Array.Empty<string>(); 3997ToolLocationHelper.GetPlatformsForSDK("AnySDK", new Version("1.0"), Array.Empty<string>(), "").Any().ShouldBeFalse();
Microsoft.CSharp (11)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (2)
35IEnumerator<CSharpArgumentInfo> arginfosEnum = (arginfos ?? Array.Empty<CSharpArgumentInfo>()).GetEnumerator(); 334internal static T[] ToArray<T>(IEnumerable<T> source) => source == null ? Array.Empty<T>() : source.ToArray();
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (1)
464return Array.Empty<KeyValuePair<string, object>>();
Microsoft\CSharp\RuntimeBinder\Semantics\SubstitutionContext.cs (2)
17ClassTypes = typeArgsCls?.Items ?? Array.Empty<CType>(); 19MethodTypes = typeArgsMeth?.Items ?? Array.Empty<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodOrPropertySymbol.cs (4)
66_optionalParameterIndex = _defaultParameterIndex = _marshalAsIndex = Array.Empty<bool>(); 67_defaultParameters = Array.Empty<ConstVal>(); 68_defaultParameterConstValTypes = Array.Empty<CType>(); 69_marshalAsBuffer = Array.Empty<UnmanagedType>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (1)
84public static readonly TypeArray Empty = new TypeArray(Array.Empty<CType>());
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
816return Array.Empty<CType>();
Microsoft.DotNet.Build.Tasks.Packaging.Tests (8)
GenerateNuSpecAndPackTests.cs (8)
92AdditionalLibPackageExcludes = additionalLibPackageExcludes ?? Array.Empty<ITaskItem>(), 93AdditionalSymbolPackageExcludes = additionalSymbolPackageExcludes ?? Array.Empty<ITaskItem>(), 99NuspecProperties = nuspecProperties ?? Array.Empty<ITaskItem>(), 145Dependencies = dependencies ?? Array.Empty<ITaskItem>(), 148Files = files ?? Array.Empty<ITaskItem>(), 149FrameworkReferences = frameworkReferences ?? Array.Empty<ITaskItem>(), 159PackageTypes = packageTypes ?? Array.Empty<string>(), 161References = references ?? Array.Empty<ITaskItem>(),
Microsoft.DotNet.Helix.Client (3)
generated-code\HelixApi.cs (2)
99return HttpPipelineBuilder.Build(options, Array.Empty<HttpPipelinePolicy>(), Array.Empty<HttpPipelinePolicy>(), new HelixApiResponseClassifier());
HelixApiTokenAuthenticationPolicy.cs (1)
26var token = await _credential.GetTokenAsync(new TokenRequestContext(Array.Empty<string>(), message.Request.ClientRequestId), message.CancellationToken).ConfigureAwait(false);
Microsoft.DotNet.Helix.Sdk (2)
FindDotNetCliPackage.cs (1)
337string[] versionData = latestVersionContent.Split(Array.Empty<char>(), StringSplitOptions.RemoveEmptyEntries);
GetHelixWorkItems.cs (1)
47return Array.Empty<ITaskItem>();
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetVersionUpdater.cs (2)
269foreach (var packageType in packageTypesElement.Elements(XName.Get("packageType", nuspecXmlns)) ?? Array.Empty<XElement>()) 293Descendants(XName.Get("dependency", package.NuspecXmlns)) ?? Array.Empty<XElement>();
Microsoft.DotNet.NuGetRepack.Tests (2)
ReplacePackagePartsTests.cs (2)
39AssertEx.Equal(Array.Empty<string>(), engine.LogErrorEvents.Select(w => w.Message)); 40AssertEx.Equal(Array.Empty<string>(), engine.LogWarningEvents.Select(w => $"{w.Code}: {w.Message}"));
Microsoft.DotNet.Open.Api.Tools.Tests (1)
OpenApiAddFileTests.cs (1)
19var run = app.Execute(Array.Empty<string>());
Microsoft.DotNet.RemoteExecutor (5)
Program.cs (1)
36Array.Empty<string>();
RemoteExecutor.cs (4)
118return Invoke(GetMethodInfo(method), Array.Empty<string>(), options); 178return Invoke(GetMethodInfo(method), Array.Empty<string>(), options); 223return Invoke(GetMethodInfo(method), Array.Empty<string>(), options); 276return Invoke(GetMethodInfo(method), Array.Empty<string>(), options);
Microsoft.DotNet.SharedFramework.Sdk (2)
src\GenerateSharedFrameworkDepsFile.cs (2)
91Array.Empty<Dependency>(), 96IEnumerable<RuntimeFallbacks> runtimeFallbackGraph = Array.Empty<RuntimeFallbacks>();
Microsoft.DotNet.SignTool (1)
src\BatchSignUtil.cs (1)
41_itemsToSkipStrongNameCheck = itemsToSkipStrongNameCheck ?? Array.Empty<string>();
Microsoft.DotNet.SignTool.Tests (13)
SignToolTests.cs (13)
355signingInput.FilesToCopy.Select(f => $"{f.Key} -> {f.Value}").Should().BeEquivalentTo(expectedCopyFiles ?? Array.Empty<string>()); 356engine.LogErrorEvents.Select(w => w.Message).Should().BeEquivalentTo(expectedErrors ?? Array.Empty<string>()); 357engine.LogWarningEvents.Select(w => $"{w.Code}: {w.Message}").Should().BeEquivalentTo(expectedWarnings ?? Array.Empty<string>()); 383ItemsToSign = Array.Empty<ITaskItem>(), 384StrongNameSignInfo = Array.Empty<ITaskItem>(), 402ItemsToSign = Array.Empty<ITaskItem>(), 403StrongNameSignInfo = Array.Empty<ITaskItem>(), 1268ItemsToSign = Array.Empty<ITaskItem>(), 1269StrongNameSignInfo = Array.Empty<ITaskItem>(), 1270FileExtensionSignInfo = Array.Empty<ITaskItem>(), 1851ItemsToSign = itemsToSign ?? Array.Empty<ITaskItem>(), 1852StrongNameSignInfo = strongNameSignInfo ?? Array.Empty<ITaskItem>(), 1853FileExtensionSignInfo = fileExtensionSignInfo ?? Array.Empty<ITaskItem>(),
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Modeler\ServiceClientModelFactory.cs (2)
160IList<ParameterModel> parameters = (operation.Parameters ?? Array.Empty<OpenApiParameter>()) 428: Array.Empty<PropertyModel>();
Microsoft.DotNet.XUnitExtensions (5)
Discoverers\PlatformSpecificDiscoverer.cs (1)
29Array.Empty<KeyValuePair<string, string>>() :
Discoverers\SkipOnCoreClrDiscoverer.cs (1)
56return Array.Empty<KeyValuePair<string, string>>();
Discoverers\SkipOnMonoDiscoverer.cs (1)
33return Array.Empty<KeyValuePair<string, string>>();
Discoverers\SkipOnPlatformDiscoverer.cs (1)
30return Array.Empty<KeyValuePair<string, string>>();
Discoverers\SkipOnTargetFrameworkDiscoverer.cs (1)
30Array.Empty<KeyValuePair<string, string>>();
Microsoft.Extensions.Caching.SqlServer (1)
SqlParameterCollectionExtensions.cs (1)
29return parameters.AddWithValue(Columns.Names.CacheItemValue, SqlDbType.VarBinary, Array.Empty<byte>());
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (2)
RedisCacheSetAndRemoveTests.cs (2)
110cache.Set(key, Array.Empty<byte>()); 124await cache.SetAsync(key, Array.Empty<byte>());
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationSource.cs (1)
22public IEnumerable<string> Args { get; set; } = Array.Empty<string>();
Microsoft.Extensions.DependencyInjection (5)
ServiceLookup\CallSiteRuntimeResolver.cs (1)
46parameterValues = Array.Empty<object>();
ServiceLookup\ConstructorCallSite.cs (1)
14public ConstructorCallSite(ResultCache cache, Type serviceType, ConstructorInfo constructorInfo) : this(cache, serviceType, constructorInfo, Array.Empty<ServiceCallSite>())
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (2)
139.Invoke(obj: null, parameters: Array.Empty<object>())); 175parameterExpressions = Array.Empty<Expression>();
ServiceLookup\ServiceProviderEngineScope.cs (1)
18internal IList<object> Disposables => _disposables ?? (IList<object>)Array.Empty<object>();
Microsoft.Extensions.DependencyModel (3)
Resolution\ReferenceAssemblyPathResolver.cs (3)
96return Array.Empty<string>(); 102return Array.Empty<string>(); 108return Array.Empty<string>();
Microsoft.Extensions.Diagnostics (1)
Metrics\ListenerSubscription.cs (1)
17private IList<InstrumentRule> _rules = Array.Empty<InstrumentRule>();
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
HealthCheckRegistration.cs (2)
68Tags = new HashSet<string>(tags ?? Array.Empty<string>(), StringComparer.OrdinalIgnoreCase); 120Tags = new HashSet<string>(tags ?? Array.Empty<string>(), StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.FileProviders.Composite (1)
CompositeFileProvider.cs (1)
25_fileProviders = fileProviders ?? Array.Empty<IFileProvider>();
Microsoft.Extensions.FileProviders.Embedded (2)
Manifest\ManifestDirectoryInfo.cs (1)
57return Array.Empty<IFileInfo>();
Manifest\ManifestSinkDirectory.cs (1)
12: base(name: string.Empty, children: Array.Empty<ManifestEntry>())
Microsoft.Extensions.FileProviders.Embedded.Tests (4)
Manifest\ManifestEntryTests.cs (4)
28var directory = ManifestDirectory.CreateDirectory("a", Array.Empty<ManifestEntry>()); 41var directory = ManifestDirectory.CreateDirectory("a", Array.Empty<ManifestEntry>()); 54var childDirectory = ManifestDirectory.CreateDirectory("b", Array.Empty<ManifestEntry>()); 68var directory = ManifestDirectory.CreateRootDirectory(Array.Empty<ManifestEntry>());
Microsoft.Extensions.FileSystemGlobbing (1)
MatcherExtensions.cs (1)
57return Array.Empty<string>();
Microsoft.Extensions.Identity.Core (2)
Base32.cs (1)
80return Array.Empty<byte>();
UserManager.cs (1)
2359Logger.LogDebug(LoggerEventIds.PasswordValidationFailed, "User password validation failed: {errors}.", string.Join(";", errors?.Select(e => e.Code) ?? Array.Empty<string>()));
Microsoft.Extensions.Logging (1)
LoggerFactory.cs (1)
34public LoggerFactory() : this(Array.Empty<ILoggerProvider>())
Microsoft.Extensions.Logging.Abstractions (2)
LogValuesFormatter.cs (2)
160return string.Format(CultureInfo.InvariantCulture, _format, formattedValues ?? Array.Empty<object>()); 174return string.Format(CultureInfo.InvariantCulture, _format, values ?? Array.Empty<object>());
Microsoft.Extensions.Logging.AzureAppServices (1)
BlobAppendReferenceWrapper.cs (1)
52Content = new ByteArrayContent(Array.Empty<byte>()),
Microsoft.Extensions.Logging.Console (2)
ConsoleLoggerExtensions.Obsolete.cs (1)
157OptionsFactory<ConsoleLoggerOptions> factory = new(new IConfigureOptions<ConsoleLoggerOptions>[] { adapter }, Array.Empty<IPostConfigureOptions<ConsoleLoggerOptions>>());
ConsoleLoggerProvider.cs (1)
34: this(options, Array.Empty<ConsoleFormatter>()) { }
Microsoft.Extensions.Logging.EventSource (2)
EventSourceLogger.cs (1)
210return Array.Empty<KeyValuePair<string, string?>>();
LoggingEventSource.cs (1)
115private LoggerFilterRule[] _filterSpec = Array.Empty<LoggerFilterRule>();
Microsoft.Extensions.Logging.Generators (5)
LoggerMessageGenerator.Parser.cs (5)
43return Array.Empty<LoggerClass>(); 50return Array.Empty<LoggerClass>(); 57return Array.Empty<LoggerClass>(); 64return Array.Empty<LoggerClass>(); 598return Array.Empty<LoggerClass>();
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
56return (IConfig)Activator.CreateInstance(configType, Array.Empty<object>());
Microsoft.Extensions.Options (1)
OptionsFactory.cs (1)
27public OptionsFactory(IEnumerable<IConfigureOptions<TOptions>> setups, IEnumerable<IPostConfigureOptions<TOptions>> postConfigures) : this(setups, postConfigures, validations: Array.Empty<IValidateOptions<TOptions>>())
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
866_reportDiagnostic(Diagnostic.Create(desc, location, Array.Empty<object?>()));
Microsoft.Extensions.Primitives (3)
StringValues.cs (3)
27public static readonly StringValues Empty = new StringValues(Array.Empty<string>()); 160return Array.Empty<string>()[0]; // throws 279return GetArrayValue() ?? Array.Empty<string>();
Microsoft.Interop.JavaScript.JSImportGenerator (8)
JSGeneratorFactory.cs (5)
63return Create(info, isToJs, simple.KnownType, Array.Empty<KnownManagedType>(), jsMarshalingInfo.JSType, Array.Empty<JSTypeFlags>(), fail); 83return Create(info, isToJs, task.KnownType, Array.Empty<KnownManagedType>(), jsMarshalingInfo.JSType, jsMarshalingInfo.JSTypeArguments, fail); 284var gen = Create(info, isToJs ^ (!isReturn), argumentTypes[i], Array.Empty<KnownManagedType>(), jsTypeArguments[i], Array.Empty<JSTypeFlags>(), failWithReason);
JSManagedTypeInfo.cs (1)
145return new JSFunctionTypeInfo(true, Array.Empty<JSSimpleTypeInfo>());
Marshaling\EmptyJSGenerator.cs (2)
13public IEnumerable<StatementSyntax> Generate(TypePositionInfo info, StubCodeContext context) => Array.Empty<StatementSyntax>(); 14public IEnumerable<ExpressionSyntax> GenerateBind(TypePositionInfo info, StubCodeContext context) => Array.Empty<ExpressionSyntax>();
Microsoft.Interop.SourceGeneration (15)
BoundGenerators.cs (1)
137return Array.Empty<(bool, int)>();
Marshalling\CustomTypeMarshallingGenerator.cs (1)
103return Array.Empty<StatementSyntax>();
Marshalling\Forwarder.cs (1)
29return Array.Empty<StatementSyntax>();
Marshalling\StatelessMarshallingStrategy.cs (12)
36public IEnumerable<StatementSyntax> GenerateCleanupCallerAllocatedResourcesStatements(TypePositionInfo info, StubCodeContext context) => Array.Empty<StatementSyntax>(); 38public IEnumerable<StatementSyntax> GenerateCleanupCalleeAllocatedResourcesStatements(TypePositionInfo info, StubCodeContext context) => Array.Empty<StatementSyntax>(); 101return Array.Empty<StatementSyntax>(); 126return Array.Empty<StatementSyntax>(); 131return Array.Empty<StatementSyntax>(); 136return Array.Empty<StatementSyntax>(); 141return Array.Empty<StatementSyntax>(); 438public IEnumerable<StatementSyntax> GenerateNotifyForSuccessfulInvokeStatements(TypePositionInfo info, StubCodeContext context) => Array.Empty<StatementSyntax>(); 439public IEnumerable<StatementSyntax> GeneratePinnedMarshalStatements(TypePositionInfo info, StubCodeContext context) => Array.Empty<StatementSyntax>(); 440public IEnumerable<StatementSyntax> GeneratePinStatements(TypePositionInfo info, StubCodeContext context) => Array.Empty<StatementSyntax>(); 459public IEnumerable<StatementSyntax> GenerateUnmarshalCaptureStatements(TypePositionInfo info, StubCodeContext context) => Array.Empty<StatementSyntax>(); 715public IEnumerable<StatementSyntax> GenerateUnmarshalCaptureStatements(TypePositionInfo info, StubCodeContext context) => Array.Empty<StatementSyntax>();
Microsoft.JSInterop (2)
Infrastructure\DotNetDispatcher.cs (1)
219return Array.Empty<object>();
src\Components\Shared\src\ArrayBuilder.cs (1)
37private static readonly T[] Empty = Array.Empty<T>();
Microsoft.JSInterop.Tests (9)
JSRuntimeTest.cs (9)
110var unrelatedTask = runtime.InvokeAsync<string>("unrelated call", Array.Empty<object>()); 111var task = runtime.InvokeAsync<string>("test identifier", Array.Empty<object>()); 133var task = runtime.InvokeAsync<TestPoco>("test identifier", Array.Empty<object>()); 155var task = runtime.InvokeAsync<TestPoco>("test identifier", Array.Empty<object>()); 179var unrelatedTask = runtime.InvokeAsync<string>("unrelated call", Array.Empty<object>()); 180var task = runtime.InvokeAsync<string>("test identifier", Array.Empty<object>()); 207var unrelatedTask = runtime.InvokeAsync<string>("unrelated call", Array.Empty<object>()); 208var task = runtime.InvokeAsync<int>("test identifier", Array.Empty<object>()); 237var task = runtime.InvokeAsync<string>("test identifier", Array.Empty<object>());
Microsoft.NET.Sdk.WebAssembly.Pack.Tasks (3)
GenerateWasmBootJson.cs (3)
160string[] moduleAfterConfigLoadedFullPaths = ModuleAfterConfigLoaded?.Select(s => s.GetMetadata("FullPath")).ToArray() ?? Array.Empty<string>(); 161string[] moduleAfterRuntimeReadyFullPaths = ModuleAfterRuntimeReady?.Select(s => s.GetMetadata("FullPath")).ToArray() ?? Array.Empty<string>(); 172var remainingLazyLoadAssemblies = new List<ITaskItem>(LazyLoadedAssemblies ?? Array.Empty<ITaskItem>());
Microsoft.VisualBasic.Core (11)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (1)
1238argNames = Array.Empty(Of String)()
Microsoft\VisualBasic\CompilerServices\NewLateBinding.vb (1)
854Instance, Nothing, MemberName, Arguments, Array.Empty(Of String)(),
Microsoft\VisualBasic\CompilerServices\Symbols.vb (5)
58Friend Shared ReadOnly NoArguments As Object() = Array.Empty(Of Object)() 59Friend Shared ReadOnly NoArgumentNames As String() = Array.Empty(Of String)() 60Friend Shared ReadOnly NoTypeArguments As Type() = Array.Empty(Of Type)() 61Friend Shared ReadOnly NoTypeParameters As Type() = Array.Empty(Of Type)() 857Private Shared ReadOnly s_noMembers As MemberInfo() = Array.Empty(Of MemberInfo)()
Microsoft\VisualBasic\CompilerServices\Utils.vb (1)
351Dim [property] As PropertyInfo = MemberInfo.GetProperty("MetadataToken", GetType(Integer), Array.Empty(Of Type)())
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (1)
1998args = Array.Empty(Of Object)()
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
2260Private m_PreviousCharBuffer() As Char = Array.Empty(Of Char)() ' The cached character array from previous call to IsTextExist.
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (1)
1431Private m_CommentTokens() As String = Array.Empty(Of String)()
MinimalSample (1)
Program.cs (1)
33tags ??= endpoint?.Metadata.GetMetadata<ITagsMetadata>()?.Tags ?? Array.Empty<string>();
MonoAOTCompiler (4)
MonoAOTCompiler.cs (4)
35public ITaskItem[] Assemblies { get; set; } = Array.Empty<ITaskItem>(); 128public ITaskItem[] DirectPInvokes { get; set; } = Array.Empty<ITaskItem>(); 148public ITaskItem[] DirectPInvokeLists { get; set; } = Array.Empty<ITaskItem>(); 173public string[] MibcProfilePath { get; set; } = Array.Empty<string>();
MonoTargetsTasks (5)
EmitBundleTask\EmitBundleBase.cs (1)
36public ITaskItem[] FilesToBundle { get; set; } = Array.Empty<ITaskItem>();
ILStrip\ILStrip.cs (1)
28public ITaskItem[] Assemblies { get; set; } = Array.Empty<ITaskItem>();
MarshalingPInvokeScanner\MarshalingPInvokeScanner.cs (1)
24public string[] Assemblies { get; set; } = Array.Empty<string>();
NetTraceToMibcConverterTask\NetTraceToMibcConverter.cs (1)
27public ITaskItem[] Assemblies { get; set; } = Array.Empty<ITaskItem>();
RuntimeConfigParser\RuntimeConfigParser.cs (1)
31public ITaskItem[] RuntimeConfigReservedProperties { get; set; } = Array.Empty<ITaskItem>();
MSBuild (15)
CommandLineSwitches.cs (2)
602private static readonly string[] s_noParameters = Array.Empty<string>(); 696result = Array.Empty<string>();
ReadOnlyEmptyDictionary.cs (2)
77Array.Empty<K>(); 87Array.Empty<V>();
TerminalLogger\TerminalLogger.cs (2)
103private NodeStatus?[] _nodes = Array.Empty<NodeStatus>(); 149private NodesFrame _currentFrame = new(Array.Empty<NodeStatus>(), 0, 0);
XMake.cs (9)
687string[] targets = Array.Empty<string>(); 691ILogger[] loggers = Array.Empty<ILogger>(); 720string[] getProperty = Array.Empty<string>(); 721string[] getItem = Array.Empty<string>(); 722string[] getTargetResult = Array.Empty<string>(); 2622getProperty = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GetProperty] ?? Array.Empty<string>(); 2623getItem = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GetItem] ?? Array.Empty<string>(); 2624getTargetResult = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GetTargetResult] ?? Array.Empty<string>(); 3500HashSet<string> extensionsToIgnore = new HashSet<string>(projectsExtensionsToIgnore ?? Array.Empty<string>(), StringComparer.OrdinalIgnoreCase);
Mvc.Api.Analyzers.Test (2)
ApiConventionAnalyzerIntegrationTest.cs (1)
274=> RunTest(descriptor, Array.Empty<object>(), testMethod);
Infrastructure\MvcDiagnosticAnalyzerRunner.cs (1)
48return GetDiagnosticsAsync(new[] { project }, Analyzer, Array.Empty<string>());
Mvc.RoutingWebSite (2)
StartupForDynamic.cs (1)
71return new ValueTask<IReadOnlyList<Endpoint>>(Array.Empty<Endpoint>());
StartupForDynamicOrder.cs (1)
91var kvps = ((string)values?["slug"])?.Split("/")?.LastOrDefault()?.Split(",") ?? Array.Empty<string>();
PresentationBuildTasks (5)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (3)
609_generatedCodeFiles = Array.Empty<TaskItem>(); 628_generatedBamlFiles = Array.Empty<TaskItem>(); 647_generatedLocalizationFiles = Array.Empty<TaskItem>();
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (2)
379_generatedBaml = Array.Empty<TaskItem>(); 576localXamlPageFileList = Array.Empty<FileUnit>();
PresentationCore (30)
MS\Internal\Generated\AvTraceMessages.cs (4)
85_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 109_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 269_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 293_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
224return Array.Empty<Guid>();
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (3)
151GestureRecognitionResult[] recResults = Array.Empty<GestureRecognitionResult>(); 606GestureRecognitionResult[] recResults = Array.Empty<GestureRecognitionResult>(); 670GestureRecognitionResult[] recResults = Array.Empty<GestureRecognitionResult>();
MS\Internal\Ink\Lasso.cs (2)
198return Array.Empty<StrokeIntersection>(); 311return Array.Empty<StrokeIntersection>();
MS\Internal\TextFormatting\FullTextLine.cs (1)
2073return Array.Empty<TextSpan<TextRun>>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Ink\KnownIds.cs (1)
317null, null, Array.Empty<object>(),
System\Windows\Ink\GestureRecognizer.cs (1)
133_enabledGestures = Array.Empty<ApplicationGesture>();
System\Windows\Ink\Stroke2.cs (3)
585return Array.Empty<StrokeIntersection>(); 604return Array.Empty<StrokeIntersection>(); 611return Array.Empty<StrokeIntersection>();
System\Windows\Input\Stylus\Common\RawStylusSystemGestureInputReport.cs (2)
103stylusDeviceId, Array.Empty<int>()) 153: base(mode, timestamp, inputSource, penContext, RawStylusActions.SystemGesture, tabletId, stylusDeviceId, Array.Empty<int>())
System\Windows\Input\Stylus\Pointer\PointerData.cs (1)
113_history = Array.Empty<POINTER_INFO>();
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
128ProcessInput(RawStylusActions.OutOfRange, penContext, tabletDeviceId, stylusPointerId, Array.Empty<int>(), timestamp);
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (6)
42IntPtr [] _handles = Array.Empty<IntPtr>(); 44WeakReference [] _penContexts = Array.Empty<WeakReference>(); 46IPimcContext3 [] _pimcContexts = Array.Empty<IPimcContext3>(); 51UInt32[] _wispContextKeys = Array.Empty<UInt32>(); 168TabletDeviceInfo[] _tabletDevicesInfo = Array.Empty<TabletDeviceInfo>(); 333StylusDeviceInfo[] _stylusDevicesInfo = Array.Empty<StylusDeviceInfo>();
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (1)
700TabletDevice[] _tablets = Array.Empty<TabletDevice>();
System\Windows\InterOp\HwndPointerInputProvider.cs (1)
151int[] data = Array.Empty<int>();
System\Windows\Media\textformatting\TextRunCache.cs (1)
96return Array.Empty<TextSpan<TextRun>>();
System\Windows\Media\UniqueEventHelper.cs (1)
139return Array.Empty<TEventHandler>();
PresentationFramework (49)
Microsoft\Win32\CommonItemDialog.cs (1)
504return Array.Empty<string>();
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
295private static readonly XmlQualifiedName[] LocatorPartTypeNames = Array.Empty<XmlQualifiedName>();
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (1)
212private static readonly XmlQualifiedName[] LocatorPartTypeNames = Array.Empty<XmlQualifiedName>();
MS\Internal\Annotations\Serializer.cs (2)
60_ctor = type.GetConstructor(Array.Empty<Type>()); 93IXmlSerializable serializable = (IXmlSerializable)_ctor.Invoke(Array.Empty<object>());
MS\Internal\Data\IndexerPropertyInfo.cs (1)
58return Array.Empty<ParameterInfo>();
MS\Internal\Data\LiveShapingList.cs (3)
152_sortInfos = Array.Empty<LivePropertyInfo>(); 174_filterInfos = Array.Empty<LivePropertyInfo>(); 216_groupInfos = Array.Empty<LivePropertyInfo>();
MS\Internal\Data\PathParser.cs (1)
402static SourceValueInfo[] EmptyInfo = Array.Empty<SourceValueInfo>();
MS\Internal\Generated\AvTraceMessages.cs (12)
1349_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 1373_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 1477_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 1501_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 1717_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 1741_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 2013_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 2037_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 2099_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 2123_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 2261_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() ); 2285_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
MS\Internal\Globalization\BamlTreeMap.cs (2)
732LocalizationAttributes = Array.Empty<PropertyComment>(); 733LocalizationComments = Array.Empty<PropertyComment>();
MS\Internal\PtsHost\RowParagraph.cs (1)
318_spannedCells = Array.Empty<CellParagraph>();
MS\Internal\PtsTable\RowSpanVector.cs (1)
270private static TableCell[] s_noCells = Array.Empty<TableCell>(); // empty array RowSpanVector returns to rows that do not
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
171return Array.Empty<IRawElementProviderSimple>();
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (2)
108return Array.Empty<IRawElementProviderSimple>(); 127return Array.Empty<IRawElementProviderSimple>();
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
186selection = Array.Empty<IRawElementProviderSimple>();
System\Windows\Controls\Primitives\TabPanel.cs (2)
238int[] solution = Array.Empty<int>(); 438return Array.Empty<int>();
System\Windows\Controls\TextAdaptor.cs (3)
97return Array.Empty<Rect>(); 115return Array.Empty<Rect>(); 128return Array.Empty<Rect>();
System\Windows\Diagnostics\BindingFailedEventArgs.cs (1)
52this.Parameters = parameters ?? Array.Empty<object>();
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
278=> Array.Empty<ResourceDictionary>(); 321=> Array.Empty<FrameworkElement>(); 323=> Array.Empty<FrameworkContentElement>(); 325=> Array.Empty<Application>();
System\Windows\Documents\FixedSOMContainer.cs (1)
179return Array.Empty<FixedElement.ElementType>();
System\Windows\Documents\PageContent.cs (1)
453children = Array.Empty<FixedPage>();
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (2)
62IReadOnlyList<WordSegment> tokens = segmenter?.GetTokens(text) ?? Array.Empty<WordSegment>(); 65return Array.Empty<SpellerSegment>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1437throw new ArgumentException(SR.Format(SR.IntegerCollectionLengthLessThanZero, Array.Empty<object>()));
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
32: base(Array.Empty<Assembly>())
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
377s_EmptyAttributes = Array.Empty<Attribute>();
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
1065get { return Array.Empty<Type>(); }
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
330return Array.Empty<MarkupObject>();
PresentationUI (2)
MS\Internal\Documents\PeoplePickerWrapper.cs (2)
77String[] ldapPaths = Array.Empty<String>(); 98return Array.Empty<String>();
ReachFramework (1)
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (1)
421return Array.Empty<T>();
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
102return new KestrelServerImpl(sp.GetServices<IConnectionListenerFactory>(), Array.Empty<IMultiplexedConnectionListenerFactory>(), sp.GetRequiredService<IHttpsConfigurationService>(), context);
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
102return new KestrelServerImpl(sp.GetServices<IConnectionListenerFactory>(), Array.Empty<IMultiplexedConnectionListenerFactory>(), sp.GetRequiredService<IHttpsConfigurationService>(), context);
src\Shared\Metrics\TestMeterFactory.cs (1)
15var meter = new Meter(options.Name, options.Version, Array.Empty<KeyValuePair<string, object>>(), scope: this);
System.Collections (10)
src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (2)
13((IEnumerable<T>)Array.Empty<T>()).GetEnumerator(); 81return Array.Empty<T>();
System\Collections\Generic\PriorityQueue.cs (2)
71_nodes = Array.Empty<(TElement, TPriority)>(); 98_nodes = Array.Empty<(TElement, TPriority)>();
System\Collections\Generic\SortedList.cs (4)
75keys = Array.Empty<TKey>(); 76values = Array.Empty<TValue>(); 250keys = Array.Empty<TKey>(); 251values = Array.Empty<TValue>();
System\Collections\Generic\Stack.cs (2)
37_array = Array.Empty<T>(); 334return Array.Empty<T>();
System.Collections.Concurrent (3)
System\Collections\Concurrent\ConcurrentBag.cs (1)
403return Array.Empty<T>();
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
747return Array.Empty<KeyValuePair<TKey, TValue>>();
System\Collections\Concurrent\ConcurrentStack.cs (1)
683Array.Empty<T>() :
System.Collections.Immutable (12)
System\Collections\Frozen\EmptyFrozenDictionary.cs (4)
17private protected override TKey[] KeysCore => Array.Empty<TKey>(); 20private protected override TValue[] ValuesCore => Array.Empty<TValue>(); 23private protected override Enumerator GetEnumeratorCore() => new Enumerator(Array.Empty<TKey>(), Array.Empty<TValue>());
System\Collections\Frozen\EmptyFrozenSet.cs (2)
15private protected override T[] ItemsCore => Array.Empty<T>(); 24private protected override Enumerator GetEnumeratorCore() => new Enumerator(Array.Empty<T>());
System\Collections\Frozen\FrozenDictionary.cs (4)
283Keys is { Length: > 0 } keys ? keys : Array.Empty<TKey>(); 304Values is { Length: > 0 } values ? values : Array.Empty<TValue>(); 530Count == 0 ? ((IList<KeyValuePair<TKey, TValue>>)Array.Empty<KeyValuePair<TKey, TValue>>()).GetEnumerator() : 535Count == 0 ? Array.Empty<KeyValuePair<TKey, TValue>>().GetEnumerator() :
System\Collections\Frozen\FrozenSet.cs (2)
305Count == 0 ? ((IList<T>)Array.Empty<T>()).GetEnumerator() : 310Count == 0 ? Array.Empty<T>().GetEnumerator() :
System.Collections.NonGeneric (6)
System\Collections\Queue.cs (1)
252return Array.Empty<object>();
System\Collections\SortedList.cs (4)
82keys = Array.Empty<object>(); 83values = Array.Empty<object>(); 220keys = Array.Empty<object>(); 221values = Array.Empty<object>();
System\Collections\Stack.cs (1)
201return Array.Empty<object>();
System.ComponentModel.Annotations (7)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
191attributes = Array.Empty<Attribute>();
System\ComponentModel\DataAnnotations\AssociationAttribute.cs (1)
75return Array.Empty<string>();
System\ComponentModel\DataAnnotations\FilterUIHintAttribute.cs (2)
43: this(filterUIHint, null, Array.Empty<object>()) 55: this(filterUIHint, presentationLayer, Array.Empty<object>())
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (2)
25: this(uiHint, null, Array.Empty<object>()) 35: this(uiHint, presentationLayer, Array.Empty<object>())
System\ComponentModel\DataAnnotations\ValidationResult.cs (1)
60MemberNames = memberNames ?? Array.Empty<string>();
System.ComponentModel.Composition (10)
System\ComponentModel\Composition\CompositionException.cs (1)
95_errors = Array.AsReadOnly(errors == null ? Array.Empty<CompositionError>() : errors.ToArray<CompositionError>());
System\ComponentModel\Composition\ExportServices.cs (1)
44Array.Empty<ParameterModifier>()) != null;
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (1)
61copiedProviders = Array.Empty<ExportProvider>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (2)
847new ExportsChangeEventArgs(resurrectedExports, Array.Empty<ExportDefinition>(), localAtomicComposition)); 850new ExportsChangeEventArgs(resurrectedExports, Array.Empty<ExportDefinition>(), null)));
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (2)
367Array.Empty<ExportDefinition>(); 371Array.Empty<ExportDefinition>();
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (1)
30private static readonly ReadOnlyCollection<ExportProvider> EmptyProviders = new ReadOnlyCollection<ExportProvider>(Array.Empty<ExportProvider>());
System\ComponentModel\Composition\Hosting\ExportProvider.cs (1)
227exports ??= Array.Empty<Export>();
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (1)
499value = import.CastExportsToImportType(Array.Empty<Export>());
System.ComponentModel.TypeConverter (18)
System\ComponentModel\AttributeCollection.cs (4)
46_attributes = attributes ?? Array.Empty<Attribute>(); 54protected AttributeCollection() : this(Array.Empty<Attribute>()) 65newAttributes ??= Array.Empty<Attribute>(); 272attr = (Attribute)ci.Invoke(Array.Empty<object>());
System\ComponentModel\Design\PropertyTabAttribute.cs (2)
26TabScopes = Array.Empty<PropertyTabScope>(); 27_tabClassNames = Array.Empty<string>();
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (1)
33Arguments = Array.Empty<object>();
System\ComponentModel\EventDescriptorCollection.cs (1)
35_events = Array.Empty<EventDescriptor>();
System\ComponentModel\LicenseManager.cs (1)
123return CreateWithContext(type, creationContext, Array.Empty<object>());
System\ComponentModel\PropertyDescriptorCollection.cs (1)
40_properties = Array.Empty<PropertyDescriptor>();
System\ComponentModel\ReflectEventDescriptor.cs (1)
97: base(eventInfo.Name, Array.Empty<Attribute>())
System\ComponentModel\ReflectPropertyDescriptor.cs (3)
335_propInfo = _componentClass.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>()); 448_propInfo = _componentClass.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>()); 818memberInfo = currentReflectType.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>());
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
673return Array.Empty<IExtenderProvider>();
System\ComponentModel\TypeConverter.cs (2)
349protected SimplePropertyDescriptor(Type componentType, string name, Type propertyType) : this(componentType, name, propertyType, Array.Empty<Attribute>()) 429values ??= Array.Empty<object>();
System\ComponentModel\TypeDescriptionProvider.cs (1)
151return Array.Empty<IExtenderProvider>();
System.Composition.Hosting (7)
System\Composition\Hosting\CompositionHost.cs (1)
21private static readonly string[] s_noBoundaries = Array.Empty<string>();
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
17private static readonly CompositionDependency[] s_noDependenciesValue = Array.Empty<CompositionDependency>();
System\Composition\Hosting\Core\UpdateResult.cs (1)
14private static readonly ExportDescriptorPromise[] s_noPromises = Array.Empty<ExportDescriptorPromise>();
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (2)
29var boundaries = Array.Empty<string>(); 36boundaries = (specifiedBoundaries ?? Array.Empty<string>()).ToArray();
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (2)
32var boundaries = Array.Empty<string>(); 39boundaries = (specifiedBoundaries ?? Array.Empty<string>()).ToArray();
System.Composition.TypedParts (2)
System\Composition\TypedParts\ActivationFeatures\ActivationFeature.cs (1)
18protected static readonly CompositionDependency[] NoDependencies = Array.Empty<CompositionDependency>();
System\Composition\TypedParts\Util\DirectAttributeContext.cs (1)
18return Array.Empty<Attribute>();
System.Console (1)
src\libraries\Common\src\System\Text\ConsoleEncoding.cs (1)
35return Array.Empty<byte>();
System.Data.Common (38)
System\Data\Common\DataAdapter.cs (2)
363value = Array.Empty<DataTable>(); 723public virtual IDataParameter[] GetFillParameters() => Array.Empty<IDataParameter>();
System\Data\Common\DbDataAdapter.cs (2)
316return Array.Empty<DataTable>(); // design-time support 709value = Array.Empty<IDataParameter>();
System\Data\ConstraintCollection.cs (2)
449BaseGroupSwitch(constraints, oldLength, Array.Empty<Constraint>(), 0); 454BaseGroupSwitch(Array.Empty<Constraint>(), 0, constraints, oldLength);
System\Data\DataColumnCollection.cs (3)
31private DataColumn[] _columnsImplementingIChangeTracking = Array.Empty<DataColumn>(); 605BaseGroupSwitch(columns, oldLength, Array.Empty<DataColumn>(), 0); 612BaseGroupSwitch(Array.Empty<DataColumn>(), 0, columns, oldLength);
System\Data\DataRow.cs (1)
799Array.Empty<DataColumn>() : _error.GetColumnsInError();
System\Data\DataSet.cs (2)
2363excludedNamespaces = Array.Empty<string>(); 3197Array.Empty<DataTable>() :
System\Data\DataTable.cs (8)
98internal IndexField[] _primaryIndex = Array.Empty<IndexField>(); 123private DataRelation[] _nestedParentRelations = Array.Empty<DataRelation>(); 1597Array.Empty<DataRelation>() : 1634return Array.Empty<DataColumn>(); 1726_primaryIndex = (key != null) ? key.Key.GetIndexDesc() : Array.Empty<IndexField>(); 3541return ((0 == size) ? Array.Empty<DataRow>() : new DataRow[size]); 3702IndexField[] indexDesc = Array.Empty<IndexField>(); 5009int[] primaryKeyIndex = Array.Empty<int>();
System\Data\DataTableCollection.cs (1)
476BaseGroupSwitch(tables, oldLength, Array.Empty<DataTable>(), 0);
System\Data\DataView.cs (4)
771return Array.Empty<DataRowView>(); 1125ListSortDescription[] sortDescArray = Array.Empty<ListSortDescription>(); 1669ToTable(null, false, Array.Empty<string>()); 1672ToTable(tableName, false, Array.Empty<string>());
System\Data\DataViewSettingCollection.cs (1)
174_tableEnumerator = Array.Empty<DataTable>().GetEnumerator();
System\Data\FillErrorEventArgs.cs (1)
16_values = values ?? Array.Empty<object?>();
System\Data\Filter\DataExpression.cs (1)
22private DataColumn[] _dependency = Array.Empty<DataColumn>();
System\Data\PrimaryKeyTypeConverter.cs (1)
28Array.Empty<DataColumn>().GetType().Name :
System\Data\Selection.cs (1)
497return Array.Empty<object>();
System\Data\SQLTypes\SQLBinary.cs (2)
428_value = Array.Empty<byte>(); 436_value = Array.Empty<byte>();
System\Data\SQLTypes\SQLBytes.cs (2)
541value = Array.Empty<byte>(); 547value = Array.Empty<byte>();
System\Data\xmlsaver.cs (3)
533return Array.Empty<DataTable>(); 763DataRelation[] rels = Array.Empty<DataRelation>(); 2740return Array.Empty<DataTable>();
System\Xml\XmlDataDocument.cs (1)
3111retValue = Array.Empty<DataTable>();
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\ActivityEvent.cs (1)
14private static readonly IEnumerable<KeyValuePair<string, object?>> s_emptyTags = Array.Empty<KeyValuePair<string, object?>>();
System\Diagnostics\Metrics\ExponentialHistogramAggregator.cs (1)
129return new HistogramStatistics(Array.Empty<QuantileValue>(), count, sum);
System\Diagnostics\Metrics\Instrument.cs (1)
13internal static KeyValuePair<string, object?>[] EmptyTags => Array.Empty<KeyValuePair<string, object?>>();
System.Diagnostics.Process (2)
src\libraries\Common\src\System\Collections\Generic\ArrayBuilder.cs (1)
101return Array.Empty<T>();
System\Diagnostics\ProcessStartInfo.Unix.cs (1)
46public string[] Verbs => Array.Empty<string>();
System.Diagnostics.TraceSource (1)
System\Diagnostics\CorrelationManager.cs (1)
125return Array.Empty<object>();
System.Formats.Asn1 (2)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (1)
63bytes = Array.Empty<byte>();
System\Formats\Asn1\AsnWriter.cs (1)
194return Array.Empty<byte>();
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.cs (1)
97DefaultCapacitySentinel or 0 => Array.Empty<byte>(),
System.IO.Compression (3)
System\IO\Compression\ZipArchive.cs (1)
176_archiveComment = Array.Empty<byte>();
System\IO\Compression\ZipArchiveEntry.cs (1)
141_fileComment = Array.Empty<byte>();
System\IO\Compression\ZipHelper.cs (1)
202return Array.Empty<byte>();
System.IO.FileSystem.Watcher (2)
System\IO\FileSystemWatcher.cs (2)
720public string[] Items = Array.Empty<string>(); 748public void Clear() => Items = Array.Empty<string>();
System.Linq (1)
System\Linq\Enumerable.cs (1)
16Array.Empty<TResult>(); // explicitly not using [] in case the compiler ever changed to using Enumerable.Empty
System.Linq.Expressions (23)
src\libraries\Common\src\System\Collections\Generic\ArrayBuilder.cs (1)
101return Array.Empty<T>();
System\Dynamic\DynamicMetaObject.cs (2)
19public static readonly DynamicMetaObject[] EmptyMetaObjects = Array.Empty<DynamicMetaObject>(); 247public virtual IEnumerable<string> GetDynamicMemberNames() => Array.Empty<string>();
System\Dynamic\DynamicObject.cs (1)
203public virtual IEnumerable<string> GetDynamicMemberNames() => Array.Empty<string>();
System\Dynamic\ExpandoClass.cs (1)
30_keys = Array.Empty<string>();
System\Dynamic\ExpandoObject.cs (1)
1072_dataArray = Array.Empty<object>();
System\Dynamic\Utils\DelegateHelpers.cs (3)
79handler(Array.Empty<object?>()); 94return (TReturn)handler(Array.Empty<object>()); 107private static MethodInfo GetEmptyObjectArrayMethod() => ((Func<object[]>)Array.Empty<object>).GetMethodInfo();
System\Linq\Expressions\Interpreter\CallInstruction.cs (1)
370return Array.Empty<object>();
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (2)
264InterpretLambdaInvoke(targetLambda, Array.Empty<object>()); 442result = InterpretLambdaInvoke(targetLambda, Array.Empty<object>());
System\Linq\Expressions\Interpreter\InstructionList.cs (1)
119IEnumerator<KeyValuePair<int, object?>> cookieEnumerator = (debugCookies ?? Array.Empty<KeyValuePair<int, object?>>()).GetEnumerator();
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
294private static readonly LocalDefinition[] s_emptyLocals = Array.Empty<LocalDefinition>(); 2502_instructions.EmitNullableCall(method, Array.Empty<ParameterInfo>()); 2828IEnumerable<ParameterExpression> parameters = Array.Empty<ParameterExpression>();
System\Linq\Expressions\Interpreter\NewInstruction.cs (1)
63return Array.Empty<object>();
System\Linq\Expressions\MethodCallExpression.cs (2)
1146arguments ??= Array.Empty<Expression>(); 1175arguments ??= Array.Empty<Expression>();
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (3)
28_items = Array.Empty<T>(); 97_items = Array.Empty<T>(); 423_items = Array.Empty<T>();
System\Runtime\CompilerServices\RuleCache.cs (1)
18private T[] _rules = Array.Empty<T>();
System.Memory (2)
src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (1)
34_buffer = Array.Empty<T>();
System\Buffers\ReadOnlySequence.cs (1)
26public static readonly ReadOnlySequence<T> Empty = new ReadOnlySequence<T>(Array.Empty<T>());
System.Net.Http (58)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (2)
38? Array.Empty<byte>() 78_bytes = Array.Empty<byte>();
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\H2StaticTable.Http2.cs (1)
103value.Length != 0 ? Encoding.ASCII.GetBytes(value) : Array.Empty<byte>());
System\Net\Http\Headers\HttpHeaders.cs (2)
301((IEnumerable<KeyValuePair<string, IEnumerable<string>>>)Array.Empty<KeyValuePair<string, IEnumerable<string>>>()).GetEnumerator() : 1133values ??= Array.Empty<string>();
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
139((IEnumerable<T>)Array.Empty<T>()).GetEnumerator() : // use singleton empty array enumerator
System\Net\Http\HttpClient.cs (1)
298buffer.Length == 0 ? Array.Empty<byte>() :
System\Net\Http\SocketsHttpHandler\ConnectionPool\RequestQueue.cs (1)
28_array = Array.Empty<QueueItem>();
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (46)
504(KnownHeaders.AcceptCharset.Descriptor, Array.Empty<byte>()), 506(KnownHeaders.AcceptLanguage.Descriptor, Array.Empty<byte>()), 507(KnownHeaders.AcceptRanges.Descriptor, Array.Empty<byte>()), 508(KnownHeaders.Accept.Descriptor, Array.Empty<byte>()), 509(KnownHeaders.AccessControlAllowOrigin.Descriptor, Array.Empty<byte>()), 510(KnownHeaders.Age.Descriptor, Array.Empty<byte>()), 511(KnownHeaders.Allow.Descriptor, Array.Empty<byte>()), 512(KnownHeaders.Authorization.Descriptor, Array.Empty<byte>()), 513(KnownHeaders.CacheControl.Descriptor, Array.Empty<byte>()), 514(KnownHeaders.ContentDisposition.Descriptor, Array.Empty<byte>()), 515(KnownHeaders.ContentEncoding.Descriptor, Array.Empty<byte>()), 516(KnownHeaders.ContentLanguage.Descriptor, Array.Empty<byte>()), 517(KnownHeaders.ContentLength.Descriptor, Array.Empty<byte>()), 518(KnownHeaders.ContentLocation.Descriptor, Array.Empty<byte>()), 519(KnownHeaders.ContentRange.Descriptor, Array.Empty<byte>()), 520(KnownHeaders.ContentType.Descriptor, Array.Empty<byte>()), 521(KnownHeaders.Cookie.Descriptor, Array.Empty<byte>()), 522(KnownHeaders.Date.Descriptor, Array.Empty<byte>()), 523(KnownHeaders.ETag.Descriptor, Array.Empty<byte>()), 524(KnownHeaders.Expect.Descriptor, Array.Empty<byte>()), 525(KnownHeaders.Expires.Descriptor, Array.Empty<byte>()), 526(KnownHeaders.From.Descriptor, Array.Empty<byte>()), 527(KnownHeaders.Host.Descriptor, Array.Empty<byte>()), 528(KnownHeaders.IfMatch.Descriptor, Array.Empty<byte>()), 529(KnownHeaders.IfModifiedSince.Descriptor, Array.Empty<byte>()), 530(KnownHeaders.IfNoneMatch.Descriptor, Array.Empty<byte>()), 531(KnownHeaders.IfRange.Descriptor, Array.Empty<byte>()), 532(KnownHeaders.IfUnmodifiedSince.Descriptor, Array.Empty<byte>()), 533(KnownHeaders.LastModified.Descriptor, Array.Empty<byte>()), 534(KnownHeaders.Link.Descriptor, Array.Empty<byte>()), 535(KnownHeaders.Location.Descriptor, Array.Empty<byte>()), 536(KnownHeaders.MaxForwards.Descriptor, Array.Empty<byte>()), 537(KnownHeaders.ProxyAuthenticate.Descriptor, Array.Empty<byte>()), 538(KnownHeaders.ProxyAuthorization.Descriptor, Array.Empty<byte>()), 539(KnownHeaders.Range.Descriptor, Array.Empty<byte>()), 540(KnownHeaders.Referer.Descriptor, Array.Empty<byte>()), 541(KnownHeaders.Refresh.Descriptor, Array.Empty<byte>()), 542(KnownHeaders.RetryAfter.Descriptor, Array.Empty<byte>()), 543(KnownHeaders.Server.Descriptor, Array.Empty<byte>()), 544(KnownHeaders.SetCookie.Descriptor, Array.Empty<byte>()), 545(KnownHeaders.StrictTransportSecurity.Descriptor, Array.Empty<byte>()), 546(KnownHeaders.TransferEncoding.Descriptor, Array.Empty<byte>()), 547(KnownHeaders.UserAgent.Descriptor, Array.Empty<byte>()), 548(KnownHeaders.Vary.Descriptor, Array.Empty<byte>()), 549(KnownHeaders.Via.Descriptor, Array.Empty<byte>()), 550(KnownHeaders.WWWAuthenticate.Descriptor, Array.Empty<byte>()),
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
44private string[] _headerValues = Array.Empty<string>();
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1772return _stream.Read(Array.Empty<byte>());
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (2)
41public static MultiProxy Empty => new MultiProxy(null, Array.Empty<Uri>()); 53Uri[] uris = Array.Empty<Uri>();
System.Net.HttpListener (5)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
48arg3 ??= Array.Empty<byte>();
System\Net\Managed\HttpListenerContext.Managed.cs (1)
50new GenericPrincipal(new HttpListenerBasicIdentity(username, password), Array.Empty<string>()) :
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (1)
70secWebSocketProtocols ?? Array.Empty<string>(),
System\Net\ServiceNameStore.cs (2)
286return Array.Empty<string>(); 290return Array.Empty<string>();
System.Net.Mail (7)
System\Net\Mail\SmtpFailedRecipientsException.cs (4)
19_innerExceptions = Array.Empty<SmtpFailedRecipientException>(); 24_innerExceptions = Array.Empty<SmtpFailedRecipientException>(); 30_innerExceptions = smtpException == null ? Array.Empty<SmtpFailedRecipientException>() : new SmtpFailedRecipientException[] { smtpException }; 45_innerExceptions = innerExceptions ?? Array.Empty<SmtpFailedRecipientException>();
System\Net\Mail\SmtpReplyReaderFactory.cs (1)
304return Array.Empty<LineInfo>();
System\Net\Mime\WriteStateInfoBase.cs (2)
21_header = Array.Empty<byte>(); 22_footer = Array.Empty<byte>();
System.Net.NameResolution (7)
System\Net\Dns.cs (3)
203addresses = (family == AddressFamily.Unspecified || address.AddressFamily == family) ? new IPAddress[] { address } : Array.Empty<IPAddress>(); 514Task.FromResult(family == AddressFamily.Unspecified || ipAddress.AddressFamily == family ? new[] { ipAddress } : Array.Empty<IPAddress>()) : 618Aliases = Array.Empty<string>(),
System\Net\NameResolutionPal.Unix.cs (4)
59localAddresses = Array.Empty<IPAddress>(); 95string[] localAliases = Array.Empty<string>(); 137aliases = Array.Empty<string>(); 138addresses = Array.Empty<IPAddress>();
System.Net.NetworkInformation (8)
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
191await socket.ReceiveAsync(Array.Empty<byte>(), SocketFlags.None).ConfigureAwait(false);
System\Net\NetworkInformation\PhysicalAddress.cs (1)
14public static readonly PhysicalAddress None = new PhysicalAddress(Array.Empty<byte>());
System\Net\NetworkInformation\StringParsingHelpers.Connections.cs (6)
37v4connections = Array.Empty<string>(); 47v6connections = Array.Empty<string>(); 117v4connections = Array.Empty<string>(); 127v6connections = Array.Empty<string>(); 197v4connections = Array.Empty<string>(); 207v6connections = Array.Empty<string>();
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
30if (buffer != DefaultSendBuffer && buffer != Array.Empty<byte>())
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
372return new PingReply(address ?? new IPAddress(0), null, status, rtt, Array.Empty<byte>());
System.Net.Quic (3)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (2)
38? Array.Empty<byte>() 78_bytes = Array.Empty<byte>();
System\Net\Quic\Internal\MsQuicConfiguration.cs (1)
47Array.Empty<string>());
System.Net.Requests (3)
System\Net\AuthenticationManager.cs (1)
39public static IEnumerator RegisteredModules => Array.Empty<IAuthenticationModule>().GetEnumerator();
System\Net\FtpWebResponse.cs (1)
65internal EmptyStream() : base(Array.Empty<byte>(), false)
System\Net\HttpWebRequest.cs (1)
1198_sendRequestMessage.Content ??= new ByteArrayContent(Array.Empty<byte>());
System.Net.Security (16)
src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs (1)
45return Array.Empty<byte>();
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
449outputBuffer = Array.Empty<byte>();
src\libraries\Common\src\System\Net\ArrayBuffer.cs (2)
38? Array.Empty<byte>() 78_bytes = Array.Empty<byte>();
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
48arg3 ??= Array.Empty<byte>();
System\Net\CertificateValidationPal.Unix.cs (2)
111return Array.Empty<string>(); 118return Array.Empty<string>();
System\Net\NegotiateAuthenticationPal.Unix.cs (1)
631resultBlob = Array.Empty<byte>();
System\Net\Security\NegotiateStream.cs (1)
73_readBuffer = Array.Empty<byte>();
System\Net\Security\SslSessionsCache.cs (1)
47_thumbPrint = thumbPrint ?? Array.Empty<byte>();
System\Net\Security\SslStream.Protocol.cs (2)
307string[] issuers = Array.Empty<string>(); 701localCertificate = _sslAuthenticationOptions.CertSelectionDelegate(this, string.Empty, tempCollection, null, Array.Empty<string>());
System\Net\Security\SslStreamCertificateContext.cs (1)
47X509Certificate2[] intermediates = Array.Empty<X509Certificate2>();
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
55_privateIntermediateCertificates = Array.Empty<X509Certificate2>();
System\Net\Security\TlsFrameHelper.cs (2)
329_ => Array.Empty<byte>(), 362return Array.Empty<byte>();
System.Net.Sockets (5)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
48arg3 ??= Array.Empty<byte>();
System\Net\Sockets\Socket.cs (2)
2607buffer = Array.Empty<byte>(); 3311errorCode = SocketPal.Receive(handle, Array.Empty<byte>(), 0, 0, SocketFlags.None, out unused);
System\Net\Sockets\SocketPal.Unix.cs (1)
209Unsafe.IsNullRef(ref MemoryMarshal.GetReference(buffer)) ? Array.Empty<byte>() : buffer;
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
93_encodedPath = Array.Empty<byte>();
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
520formHeaderBytes = Array.Empty<byte>(); 521boundaryBytes = Array.Empty<byte>();
System.Net.WebHeaderCollection (1)
System\Net\HeaderInfoTable.cs (1)
22if (isSetCookie && (!value.Contains('='))) return Array.Empty<string>();
System.Net.WebProxy (1)
System\Net\WebProxy.cs (1)
77return Array.Empty<string>();
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\Tensor.cs (1)
63if (strides == Array.Empty<nint>())
System\Numerics\Tensors\netcore\TensorExtensions.cs (1)
1370tensor = new Tensor<T>(values, lengths, Array.Empty<nint>(), input._isPinned);
System.Private.CoreLib (123)
src\libraries\Common\src\System\Collections\Generic\ArrayBuilder.cs (1)
101return Array.Empty<T>();
src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (2)
13((IEnumerable<T>)Array.Empty<T>()).GetEnumerator(); 81return Array.Empty<T>();
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
306result = Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
45_innerExceptions = Array.Empty<Exception>();
src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (1)
196public Assembly[] ReflectionOnlyGetAssemblies() => Array.Empty<Assembly>();
src\libraries\System.Private.CoreLib\src\System\Buffers\ConfigurableArrayPool.cs (1)
63return Array.Empty<T>();
src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (1)
103return Array.Empty<T>();
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (6)
30_items = Array.Empty<object>(); 42_items = Array.Empty<object>(); 58_items = Array.Empty<object>(); 668return Array.Empty<object>(); 1052return Array.Empty<object?>(); 2526return Array.Empty<object?>();
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (2)
34_array = Array.Empty<T>(); 290return Array.Empty<T>();
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
30public static ReadOnlyCollection<T> Empty { get; } = new ReadOnlyCollection<T>(Array.Empty<T>());
src\libraries\System.Private.CoreLib\src\System\Convert.cs (2)
2803return Array.Empty<byte>(); 2946return Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\CodeAnalysis\StringSyntaxAttribute.cs (1)
20Arguments = Array.Empty<object?>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
168return Array.Empty<StackFrame>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (4)
93parameters = Array.Empty<EventParameterInfo>(); 124parameters = Array.Empty<EventParameterInfo>(); 172return GenerateMetadata(eventId, eventName, keywords, level, version, opcode, Array.Empty<EventParameterInfo>()); 202return GenerateMetadata(eventId, eventName, keywords, level, version, opcode, Array.Empty<EventParameterInfo>());
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (4)
402return Array.Empty<EventSource>(); 1849decoded = Array.Empty<byte>(); 5289return Array.Empty<ulong>(); 5458return (str != "") ? Encoding.UTF8.GetBytes(str) : Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Environment.Unix.cs (1)
42return Array.Empty<string>();
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Invariant.cs (1)
24keyData = Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (3)
465return Array.Empty<CultureInfo>(); 483return Array.Empty<CultureInfo>(); 502return Array.Empty<CultureInfo>();
src\libraries\System.Private.CoreLib\src\System\Globalization\OrdinalCasing.Icu.cs (1)
15private static ushort[] NoCasingPage => Array.Empty<ushort>();
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
76int[] indexes = Indexes ?? Array.Empty<int>();
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (3)
400return Array.Empty<char>(); 441return Array.Empty<byte>(); 490int n = _stream.Read(Array.Empty<byte>(), 0, 0);
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (3)
48_buffer = capacity != 0 ? new byte[capacity] : Array.Empty<byte>(); 285_buffer = Array.Empty<byte>(); 572return Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
169_charBuffer = Array.Empty<char>();
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
399return Array.Empty<T>();
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (1)
17return Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
245_parameterTypes = Array.Empty<RuntimeType>();
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EmptyCAHolder.cs (2)
10object[] ICustomAttributeProvider.GetCustomAttributes(Type attributeType, bool inherit) => Array.Empty<object>(); 12object[] ICustomAttributeProvider.GetCustomAttributes(bool inherit) => Array.Empty<object>();
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (1)
354NullabilityInfo[] genericArgumentsState = Array.Empty<NullabilityInfo>();
src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (2)
44public virtual object[] GetCustomAttributes(bool inherit) => Array.Empty<object>(); 48return Array.Empty<object>();
src\libraries\System.Private.CoreLib\src\System\Reflection\ReflectionTypeLoadException.cs (2)
24LoaderExceptions = exceptions ?? Array.Empty<Exception>(); 33LoaderExceptions = (Exception?[]?)info.GetValue("Exceptions", typeof(Exception[])) ?? Array.Empty<Exception?>();
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (1)
42return Array.Empty<T>();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (1)
388return Array.Empty<T>();
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
196return Array.Empty<string>();
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
93return members ?? Array.Empty<MemberInfo>(); 654providedArgs ??= Array.Empty<object>();
src\libraries\System.Private.CoreLib\src\System\SearchValues\EmptySearchValues.cs (1)
10Array.Empty<T>();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickNode.cs (1)
13private static object EmptyChildrenSentinel => Array.Empty<int>();
src\libraries\System.Private.CoreLib\src\System\Security\PermissionSet.cs (1)
35protected virtual IEnumerator GetEnumeratorImpl() { return Array.Empty<object>().GetEnumerator(); }
src\libraries\System.Private.CoreLib\src\System\Span.cs (1)
429return Array.Empty<T>();
src\libraries\System.Private.CoreLib\src\System\String.cs (2)
463return Array.Empty<char>(); 486return Array.Empty<char>();
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
1833return Array.Empty<string>();
src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (1)
75byte[] byteTemp = Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Text\DecoderExceptionFallback.cs (1)
47bytesUnknown ??= Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (1)
295bytesUnknown ??= Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (1)
75char[] charTemp = Array.Empty<char>();
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (2)
323public virtual byte[] GetPreamble() => Array.Empty<byte>(); 651return Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Text\EncodingProvider.cs (1)
44public virtual IEnumerable<EncodingInfo> GetEncodings() => Array.Empty<EncodingInfo>();
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
438return Array.Empty<char>();
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (4)
248char[] chars = Array.Empty<char>(); 249int charCount = _thisDecoder.GetCharCount(Array.Empty<byte>(), 0, 0, flush: true); 253charCount = _thisDecoder.GetChars(Array.Empty<byte>(), 0, 0, chars, 0, flush: true); 260byte[] bytes = Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1743return Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1119return Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
869return Array.Empty<byte>();
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (3)
6198return new Task<TResult[]>(false, Array.Empty<TResult>(), TaskCreationOptions.None, default); 6232new Task<TResult[]>(false, Array.Empty<TResult>(), TaskCreationOptions.None, default) : 6307return new Task<TResult[]>(false, Array.Empty<TResult>(), TaskCreationOptions.None, default);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
405s_assignableWorkItemQueueCount > 0 ? new int[s_assignableWorkItemQueueCount] : Array.Empty<int>();
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
61_adjustmentRules = Array.Empty<AdjustmentRule>(); 144return Array.Empty<AdjustmentRule>();
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
169return Array.Empty<string>();
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
716public static readonly Type[] EmptyTypes = Array.Empty<Type>();
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (2)
75public ICollection Keys => Array.Empty<object>(); 77public ICollection Values => Array.Empty<object>();
src\System\Reflection\Emit\CustomAttributeBuilder.cs (8)
35this(con, constructorArgs, Array.Empty<PropertyInfo>(), Array.Empty<object>(), Array.Empty<FieldInfo>(), Array.Empty<object>()) 42this(con, constructorArgs, namedProperties, propertyValues, Array.Empty<FieldInfo>(), Array.Empty<object>()) 49this(con, constructorArgs, Array.Empty<PropertyInfo>(), Array.Empty<object>(), namedFields, fieldValues)
src\System\Reflection\Emit\DynamicILGenerator.cs (6)
873m_exceptions = Array.Empty<byte>(); 874m_code = Array.Empty<byte>(); 875m_localSignature = Array.Empty<byte>(); 898m_code = (code != null) ? (byte[])code.Clone() : Array.Empty<byte>(); 915m_exceptions = (exceptions != null) ? (byte[])exceptions.Clone() : Array.Empty<byte>(); 931m_localSignature = (localSignature != null) ? (byte[])localSignature.Clone() : Array.Empty<byte>();
src\System\Reflection\RuntimeCustomAttributeData.cs (9)
188return Array.Empty<CustomAttributeData>(); 208return Array.Empty<CustomAttributeRecord>(); 272m_ctorParams = Array.Empty<CustomAttributeCtorParameter>(); 343m_namedArgs = Array.Empty<CustomAttributeNamedArgument>(); 393m_namedArgs = Array.Empty<CustomAttributeNamedArgument>(); 410m_typedCtorArgs = Array.Empty<CustomAttributeTypedArgument>(); 411m_namedArgs = Array.Empty<CustomAttributeNamedArgument>(); 439m_typedCtorArgs = Array.Empty<CustomAttributeTypedArgument>(); 487m_namedArgs = Array.Empty<CustomAttributeNamedArgument>();
src\System\Reflection\RuntimeEventInfo.cs (1)
140return Array.Empty<MethodInfo>();
src\System\Reflection\RuntimeModule.cs (2)
464return Array.Empty<FieldInfo>(); 481return Array.Empty<MethodInfo>();
src\System\Reflection\RuntimeParameterInfo.cs (2)
41sigArgCount == 0 ? Array.Empty<ParameterInfo>() : 458return Array.Empty<object>();
src\System\Reflection\RuntimePropertyInfo.cs (1)
305Array.Empty<ParameterInfo>();
src\System\RuntimeType.CoreCLR.cs (4)
84return Array.Empty<T>(); 758return Array.Empty<RuntimeConstructorInfo>(); 1102return Array.Empty<RuntimeType>(); 3790args ??= Array.Empty<object>();
System.Private.CoreLib.Generators (8)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (8)
233return Array.Empty<INamedTypeSymbol>(); 243return Array.Empty<INamedTypeSymbol>(); 265return Array.Empty<INamedTypeSymbol>(); 270return Array.Empty<INamedTypeSymbol>(); 278return Array.Empty<INamedTypeSymbol[]>(); 306return Array.Empty<INamedTypeSymbol[]>(); 345return Array.Empty<INamedTypeSymbol[]>(); 376return Array.Empty<INamedTypeSymbol[]>();
System.Private.DataContractSerialization (20)
System\Runtime\Serialization\ClassDataContract.cs (2)
179obj = ci.Invoke(Array.Empty<object>()); 629ContractNamespaces = MemberNames = MemberNamespaces = Array.Empty<XmlDictionaryString>();
System\Runtime\Serialization\CollectionDataContract.cs (3)
767_incrementCollectionCountDelegate = (IncrementCollectionCountDelegate)buildIncrementCollectionCountDelegate.Invoke(null, Array.Empty<object>())!; 773_incrementCollectionCountDelegate = (IncrementCollectionCountDelegate)buildIncrementCollectionCountDelegate.Invoke(null, Array.Empty<object>())!; 822_createGenericDictionaryEnumeratorDelegate = (CreateGenericDictionaryEnumeratorDelegate)buildCreateGenericDictionaryEnumerator.Invoke(null, Array.Empty<object>())!;
System\Runtime\Serialization\DataContract.cs (1)
1991object? types = method.Invoke(null, Array.Empty<object>());
System\Runtime\Serialization\DataContractSet.cs (1)
661SchemaImporter importer = new SchemaImporter(schemaSet, Array.Empty<XmlQualifiedName>() /* Needs to be empty, not null for 'elements' to be used. */, elements, this, importXmlDataType);
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
75return Array.Empty<byte>(); 104buffer = Array.Empty<byte>();
System\Runtime\Serialization\ReflectionClassWriter.cs (1)
76memberValue = getValue.Invoke(memberValue, Array.Empty<object>())!;
System\Runtime\Serialization\ReflectionReader.cs (2)
491object newGenericDict = ci.Invoke(Array.Empty<object>()); 509object newCollection = ci.Invoke(Array.Empty<object>());
System\Runtime\Serialization\XmlDataContract.cs (1)
378o = ctor.Invoke(Array.Empty<object>());
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
776return GetDefaultValueMethod.MakeGenericMethod(type).Invoke(null, Array.Empty<object>());
System\Runtime\Serialization\XmlReaderDelegator.cs (2)
461return Array.Empty<byte>(); 480return Array.Empty<byte>();
System\Xml\XmlBufferReader.cs (2)
36private static readonly XmlBufferReader s_empty = new XmlBufferReader(Array.Empty<byte>()); 109_buffer = Array.Empty<byte>();
System\Xml\XmlDictionaryReader.cs (2)
949buffer = Array.Empty<byte>(); 969buffer = Array.Empty<byte>();
System.Private.Uri (2)
src\libraries\Common\src\System\Collections\Generic\ArrayBuilder.cs (1)
101return Array.Empty<T>();
System\Uri.cs (1)
901segments = Array.Empty<string>();
System.Private.Xml (54)
System\Xml\BinHexDecoder.cs (1)
110return Array.Empty<byte>();
System\Xml\Schema\XmlSchemaValidator.cs (3)
940return Array.Empty<XmlSchemaParticle>(); 965return Array.Empty<XmlSchemaParticle>(); 1002return Array.Empty<XmlSchemaAttribute>();
System\Xml\Schema\XsdBuilder.cs (2)
2270builder._markup = Array.Empty<XmlNode>(); 2294builder._markup = Array.Empty<XmlNode>();
System\Xml\Serialization\Compilation.cs (1)
623return _methods[mapping.Key!].readMethod!.Invoke(reader, Array.Empty<object>());
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
1326obj = ci.Invoke(Array.Empty<object>());
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
602shouldPersist = (bool)method.Invoke(o, Array.Empty<object>())!; 634shouldPersist = (bool)method.Invoke(o, Array.Empty<object>())!;
System\Xml\Serialization\SchemaImporter.cs (1)
114mapping.Members = Array.Empty<MemberMapping>();
System\Xml\Serialization\SoapReflectionImporter.cs (2)
230mapping.Members = Array.Empty<MemberMapping>(); 709accessor.Elements = Array.Empty<ElementAccessor>();
System\Xml\Serialization\Types.cs (4)
534AddNonXsdPrimitive(typeof(char), "char", UrtTypes.Namespace, "Char", new XmlQualifiedName("unsignedShort", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.IgnoreDefault); 535AddNonXsdPrimitive(typeof(TimeSpan), "TimeSpan", UrtTypes.Namespace, "TimeSpan", new XmlQualifiedName("duration", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 536AddNonXsdPrimitive(typeof(DateTimeOffset), "dateTimeOffset", UrtTypes.Namespace, "DateTimeOffset", new XmlQualifiedName("dateTime", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired); 669AddNonXsdPrimitive(type, dataTypeName, ns, formatterName, baseTypeName, Array.Empty<XmlSchemaFacet>(), flags);
System\Xml\Serialization\Xmlcustomformatter.cs (1)
443return Array.Empty<byte>();
System\Xml\Serialization\XmlReflectionImporter.cs (1)
625mapping.Members = Array.Empty<MemberMapping>();
System\Xml\Serialization\XmlSchemaImporter.cs (4)
1108member.Elements = Array.Empty<ElementAccessor>(); 1433member.Elements = Array.Empty<ElementAccessor>(); 1464member.Elements = Array.Empty<ElementAccessor>(); 1519xmlnsMapping.Members = Array.Empty<MemberMapping>();
System\Xml\Serialization\XmlSerializationILGen.cs (6)
166Array.Empty<string>(), 292Array.Empty<string>(), 304Array.Empty<string>(), 508Array.Empty<string>(), 528Array.Empty<string>(), 554Array.Empty<string>(),
System\Xml\Serialization\XmlSerializationReader.cs (2)
1049dimensions = Array.Empty<string>(); 3432members = Array.Empty<Member>();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (5)
229ilg.BeginMethod(typeof(void), "InitIDs", Type.EmptyTypes, Array.Empty<string>(), 347ilg.BeginMethod(typeof(void), "InitCallbacks", Type.EmptyTypes, Array.Empty<string>(), 399Array.Empty<string>(), 644Array.Empty<string>(), 975Array.Empty<string>(),
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
92ilg.BeginMethod(typeof(void), "InitCallbacks", Type.EmptyTypes, Array.Empty<string>(),
System\Xml\Serialization\XmlSerializer.cs (3)
548if (mappings == null || mappings.Length == 0) return Array.Empty<XmlSerializer>(); 578return Array.Empty<XmlSerializer>(); 723return Array.Empty<XmlSerializer>();
System\Xml\Serialization\XmlSerializerNamespaces.cs (1)
86return Array.Empty<XmlQualifiedName>();
System\Xml\XPath\Internal\XPathParser.cs (1)
780private static readonly XPathResultType[] s_temparray1 = Array.Empty<XPathResultType>();
System\Xml\Xsl\IlGen\XmlILModule.cs (4)
45asmBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.Transparent, Array.Empty<object>())); 99asmBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.Transparent, Array.Empty<object>())); 154methBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.StepThrough, Array.Empty<object>())); 155methBldr.SetCustomAttribute(new CustomAttributeBuilder(XmlILConstructors.NonUserCode, Array.Empty<object>()));
System\Xml\Xsl\Runtime\EarlyBoundInfo.cs (1)
48public object CreateObject() { return _constrInfo.Invoke(Array.Empty<object>()); }
System\Xml\Xsl\XmlIlGenerator.cs (3)
132MethodInfo methExec = _module.DefineMethod("Execute", typeof(void), Type.EmptyTypes, Array.Empty<string>(), XmlILMethodAttributes.NonUser); 138MethodInfo methRoot = _module.DefineMethod("Root", typeof(void), Type.EmptyTypes, Array.Empty<string>(), methAttrs); 261methInfo = _module!.DefineMethod(ndRef.DebugName!.ToString(), typReturn, Type.EmptyTypes, Array.Empty<string>(), methAttrs);
System\Xml\Xsl\Xslt\XsltInput.cs (1)
709return GetAttributes(Array.Empty<XsltAttribute>());
System\Xml\Xsl\XsltOld\UseAttributeSetsAction.cs (2)
34_useAttributeSets = Array.Empty<XmlQualifiedName>(); 58_useAttributeSets = Array.Empty<XmlQualifiedName>();
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
744public FuncCurrent() : base(0, 0, XPathResultType.NodeSet, Array.Empty<XPathResultType>()) { }
System.Private.Xml.Linq (4)
src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (2)
13((IEnumerable<T>)Array.Empty<T>()).GetEnumerator(); 81return Array.Empty<T>();
System\Xml\Linq\XAttribute.cs (1)
30return Array.Empty<XAttribute>();
System\Xml\Linq\XElement.cs (1)
45return Array.Empty<XElement>();
System.Reflection.Context (1)
System\Reflection\Context\CollectionServices.cs (1)
12return Array.Empty<T>();
System.Reflection.Emit (2)
System\Reflection\Emit\MethodBuilderImpl.cs (1)
294return Array.Empty<ParameterInfo>();
System\Reflection\Emit\SignatureHelper.cs (1)
41parameters ??= Array.Empty<ParameterInfo>();
System.Reflection.Metadata (3)
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
306result = Array.Empty<byte>();
System\Reflection\Metadata\Internal\BlobHeap.cs (1)
101return Array.Empty<byte>();
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
21byte[]? publicKeyOrToken = !publicKeyOrTokenHandle.IsNil ? GetBlobBytes(publicKeyOrTokenHandle) : Array.Empty<byte>();
System.Reflection.MetadataLoadContext (68)
System\Reflection\MetadataLoadContext.Loading.cs (1)
33byte[] pkt = defNameData.PublicKeyToken ?? Array.Empty<byte>();
System\Reflection\Runtime\BindingFlagSupport\QueryResult.cs (1)
67return Array.Empty<M>();
System\Reflection\Runtime\General\ListBuilder.cs (1)
41return Array.Empty<T>();
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
26_loadedModules = (assemblyFileCount == 0) ? Array.Empty<RoModule>() : new RoModule[assemblyFileCount];
System\Reflection\TypeLoading\Constructors\RoSyntheticConstructor.cs (1)
34public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>();
System\Reflection\TypeLoading\CustomAttributes\CustomAttributeHelpers.cs (3)
32CustomAttributeTypedArgument[] clones = count != 0 ? new CustomAttributeTypedArgument[count] : Array.Empty<CustomAttributeTypedArgument>(); 46CustomAttributeNamedArgument[] clones = count != 0 ? new CustomAttributeNamedArgument[count] : Array.Empty<CustomAttributeNamedArgument>(); 66CustomAttributeTypedArgument[] cads = count != 0 ? new CustomAttributeTypedArgument[count] : Array.Empty<CustomAttributeTypedArgument>();
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (2)
109CustomAttributeTypedArgument[] cats = count != 0 ? new CustomAttributeTypedArgument[count] : Array.Empty<CustomAttributeTypedArgument>(); 140CustomAttributeNamedArgument[] cans = count != 0 ? new CustomAttributeNamedArgument[count] : Array.Empty<CustomAttributeNamedArgument>();
System\Reflection\TypeLoading\CustomAttributes\RoPseudoCustomAttributeData.cs (2)
28_lazyFixedArguments = fixedArguments ?? Array.Empty<CustomAttributeTypedArgument>(); 29_lazyNamedArguments = namedArguments ?? Array.Empty<CustomAttributeNamedArgument>();
System\Reflection\TypeLoading\General\Helpers.cs (1)
28return Array.Empty<T>();
System\Reflection\TypeLoading\General\RoAssemblyName.cs (1)
43PublicKeyToken = publicKeyToken ?? Array.Empty<byte>();
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodBody.cs (3)
37return Array.Empty<LocalVariableInfo>(); 41LocalVariableInfo[] lvis = count != 0 ? new LocalVariableInfo[count] : Array.Empty<LocalVariableInfo>(); 64ExceptionHandlingClause[] clauses = count != 0 ? new ExceptionHandlingClause[count] : Array.Empty<ExceptionHandlingClause>();
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
36return Array.Empty<RoType>();
System\Reflection\TypeLoading\Methods\RoConstructedGenericMethod.cs (1)
47internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>();
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
129internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>();
System\Reflection\TypeLoading\Methods\RoSyntheticMethod.cs (4)
37public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>(); 89protected sealed override RoType[] ComputeGenericArgumentsOrParameters() => Array.Empty<RoType>(); 90internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>(); 91internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>();
System\Reflection\TypeLoading\Modules\RoResourceModule.cs (3)
44public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>(); 47public sealed override FieldInfo[] GetFields(BindingFlags bindingFlags) => Array.Empty<FieldInfo>(); 48public sealed override MethodInfo[] GetMethods(BindingFlags bindingFlags) => Array.Empty<MethodInfo>();
System\Reflection\TypeLoading\Parameters\RoThinMethodParameter.cs (1)
25public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>();
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
142return Array.Empty<RoPropertyIndexParameter>();
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (1)
88return Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericParameterType.cs (1)
45return Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\RoByRefType.cs (3)
33internal sealed override IEnumerable<RoType> ComputeDirectlyImplementedInterfaces() => Array.Empty<RoType>(); 35internal sealed override IEnumerable<ConstructorInfo> GetConstructorsCore(NameFilter? filter) => Array.Empty<ConstructorInfo>(); 36internal sealed override IEnumerable<MethodInfo> GetMethodsCore(NameFilter? filter, Type reflectedType) => Array.Empty<MethodInfo>();
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (1)
121internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (1)
225internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (11)
175public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>(); 184internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>(); 185internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>(); 186protected internal sealed override RoType[] GetGenericArgumentsNoCopy() => Array.Empty<RoType>(); 199internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => Array.Empty<EventInfo>(); 200internal sealed override IEnumerable<FieldInfo> GetFieldsCore(NameFilter? filter, Type reflectedType) => Array.Empty<FieldInfo>(); 201internal sealed override IEnumerable<PropertyInfo> GetPropertiesCore(NameFilter? filter, Type reflectedType) => Array.Empty<PropertyInfo>(); 202internal sealed override IEnumerable<RoType> GetNestedTypesCore(NameFilter? filter) => Array.Empty<RoType>(); 208internal sealed override IEnumerable<RoType> ComputeDirectlyImplementedInterfaces() => Array.Empty<RoType>(); 210internal sealed override IEnumerable<ConstructorInfo> GetConstructorsCore(NameFilter? filter) => Array.Empty<ConstructorInfo>(); 211internal sealed override IEnumerable<MethodInfo> GetMethodsCore(NameFilter? filter, Type reflectedType) => Array.Empty<MethodInfo>();
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (9)
45internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>(); 46internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>(); 47protected internal sealed override RoType[] GetGenericArgumentsNoCopy() => Array.Empty<RoType>(); 88internal sealed override IEnumerable<ConstructorInfo> GetConstructorsCore(NameFilter? filter) => Array.Empty<ConstructorInfo>(); 89internal sealed override IEnumerable<MethodInfo> GetMethodsCore(NameFilter? filter, Type reflectedType) => Array.Empty<MethodInfo>(); 90internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => Array.Empty<EventInfo>(); 91internal sealed override IEnumerable<FieldInfo> GetFieldsCore(NameFilter? filter, Type reflectedType) => Array.Empty<FieldInfo>(); 92internal sealed override IEnumerable<PropertyInfo> GetPropertiesCore(NameFilter? filter, Type reflectedType) => Array.Empty<PropertyInfo>(); 93internal sealed override IEnumerable<RoType> GetNestedTypesCore(NameFilter? filter) => Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\RoHasElementType.cs (7)
54public sealed override IEnumerable<CustomAttributeData> CustomAttributes => Array.Empty<CustomAttributeData>(); 63internal sealed override RoType[] GetGenericTypeParametersNoCopy() => Array.Empty<RoType>(); 64internal sealed override RoType[] GetGenericTypeArgumentsNoCopy() => Array.Empty<RoType>(); 82internal sealed override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => Array.Empty<EventInfo>(); 83internal sealed override IEnumerable<FieldInfo> GetFieldsCore(NameFilter? filter, Type reflectedType) => Array.Empty<FieldInfo>(); 84internal sealed override IEnumerable<PropertyInfo> GetPropertiesCore(NameFilter? filter, Type reflectedType) => Array.Empty<PropertyInfo>(); 85internal sealed override IEnumerable<RoType> GetNestedTypesCore(NameFilter? filter) => Array.Empty<RoType>();
System\Reflection\TypeLoading\Types\RoPointerType.cs (3)
33internal sealed override IEnumerable<RoType> ComputeDirectlyImplementedInterfaces() => Array.Empty<RoType>(); 35internal sealed override IEnumerable<ConstructorInfo> GetConstructorsCore(NameFilter? filter) => Array.Empty<ConstructorInfo>(); 36internal sealed override IEnumerable<MethodInfo> GetMethodsCore(NameFilter? filter, Type reflectedType) => Array.Empty<MethodInfo>();
System\Reflection\TypeLoading\Types\RoType.cs (2)
238return Array.Empty<RoType>(); 295return defaultMemberName != null ? GetMember(defaultMemberName) : Array.Empty<MemberInfo>();
System.Runtime.InteropServices (2)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (2)
79implementation.SetCustomAttribute(new CustomAttributeBuilder(typeof(DynamicInterfaceCastableImplementationAttribute).GetConstructor(Array.Empty<Type>())!, Array.Empty<object>()));
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (2)
1336return Array.Empty<byte>(); 1434array = Array.Empty<byte>();
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\Formatters\Binary\BinaryObjectReader.cs (1)
375Array.Empty<byte>();
System\Runtime\Serialization\FormatterServices.cs (1)
31return Array.Empty<FieldInfo>();
System.Security.Cryptography (20)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
339pwdTmpBytes = Array.Empty<byte>(); 958byte[] tmpEnd = decryptor.TransformFinalBlock(Array.Empty<byte>(), 0, 0);
System\Security\Cryptography\AsnEncodedData.cs (1)
16_rawData = Array.Empty<byte>();
System\Security\Cryptography\Base64Transforms.cs (3)
67return Array.Empty<byte>(); 192return Array.Empty<byte>(); 219return Array.Empty<byte>();
System\Security\Cryptography\CryptoConfig.cs (1)
442args ??= Array.Empty<object>();
System\Security\Cryptography\ECDiffieHellmanPublicKey.cs (1)
15_keyBlob = Array.Empty<byte>();
System\Security\Cryptography\HashAlgorithm.cs (1)
225outputBytes = Array.Empty<byte>();
System\Security\Cryptography\PasswordDeriveBytes.cs (1)
210_hash.TransformFinalBlock(Array.Empty<byte>(), 0, 0);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (1)
337X501Attribute[] attributes = Array.Empty<X501Attribute>();
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (2)
722ChainStatus = overallStatus?.ToArray() ?? Array.Empty<X509ChainStatus>(); 859X509ChainStatus[] status = Array.Empty<X509ChainStatus>();
System\Security\Cryptography\X509Certificates\UnixPkcs12Reader.cs (2)
528foreach (AttributeAsn attr in certBagAttrs[certBagIdx] ?? Array.Empty<AttributeAsn>()) 655foreach (AttributeAsn attr in keyBags[i].BagAttributes ?? Array.Empty<AttributeAsn>())
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (1)
25_decoded = Array.Empty<AccessDescriptionAsn>();
System\Security\Cryptography\X509Certificates\X509Chain.cs (1)
57return _lazyChainStatus ??= (_pal == null ? Array.Empty<X509ChainStatus>() : _pal.ChainStatus!);
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (1)
16_elements = Array.Empty<X509ChainElement>();
System\Security\Cryptography\XmlKeyHelper.cs (2)
45return Array.Empty<byte>(); 300(IEnumerable?)s_getElementsMethod.Invoke(element, Array.Empty<object>());
System.Text.Json (3)
System\Text\Json\JsonEncodedText.cs (2)
73return new JsonEncodedText(Array.Empty<byte>()); 120return new JsonEncodedText(Array.Empty<byte>());
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1125JsonParameterInfoValues[] jsonParameters = ParameterInfoValues ?? Array.Empty<JsonParameterInfoValues>();
System.Text.Json.SourceGeneration (4)
Helpers\RoslynExtensions.cs (1)
224return Array.Empty<INamedTypeSymbol>();
JsonSourceGenerator.Parser.cs (1)
1412constructorParameters = Array.Empty<ParameterGenerationSpec>();
src\libraries\Common\src\SourceGenerators\DiagnosticInfo.cs (1)
29MessageArgs = messageArgs ?? Array.Empty<object?>()
src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
18public static ImmutableEquatableArray<T> Empty { get; } = new ImmutableEquatableArray<T>(Array.Empty<T>());
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (1)
113_ilg!.Emit(OpCodes.Call, typeof(Regex).GetConstructor(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance, null, Type.EmptyTypes, Array.Empty<ParameterModifier>())!);
System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
269public string[] LeadingPrefixes { get; } = Array.Empty<string>();
System.Text.RegularExpressions.Generator (2)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
269public string[] LeadingPrefixes { get; } = Array.Empty<string>();
UpgradeToGeneratedRegexCodeFixer.cs (1)
228_ => Array.Empty<SyntaxNode>(),
System.Threading.Channels (1)
src\libraries\Common\src\System\Collections\Generic\Deque.cs (1)
13private T[] _array = Array.Empty<T>();
System.Threading.RateLimiting (2)
src\libraries\Common\src\System\Collections\Generic\Deque.cs (1)
13private T[] _array = Array.Empty<T>();
System\Threading\RateLimiting\NoopLimiter.cs (1)
46public override IEnumerable<string> MetadataNames => Array.Empty<string>();
System.Xaml (6)
System\Windows\Markup\ValueSerializer.cs (1)
99return Array.Empty<Type>();
System\Xaml\Replacements\TypeListConverter.cs (1)
43public static string[] SplitTypeList(string typeList) => Array.Empty<string>();
System\Xaml\Schema\XamlMemberInvoker.cs (1)
18private static object[] s_emptyObjectArray = Array.Empty<object>();
System\Xaml\Schema\XamlTypeInvoker.cs (1)
20private static object[] s_emptyObjectArray = Array.Empty<object>();
System\Xaml\XamlObjectReader.cs (1)
1233methodParams = Array.Empty<ParameterInfo>();
System\Xaml\XamlType.cs (1)
1833new ReadOnlyCollection<T>(Array.Empty<T>());
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\E2ETesting\WebDriverExtensions.cs (2)
20return Array.Empty<LogEntry>(); 29return Array.Empty<LogEntry>();
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\E2ETesting\WebDriverExtensions.cs (2)
20return Array.Empty<LogEntry>(); 29return Array.Empty<LogEntry>();
Templates.Mvc.Tests (2)
src\Shared\E2ETesting\WebDriverExtensions.cs (2)
20return Array.Empty<LogEntry>(); 29return Array.Empty<LogEntry>();
Templates.Tests (2)
src\Shared\E2ETesting\WebDriverExtensions.cs (2)
20return Array.Empty<LogEntry>(); 29return Array.Empty<LogEntry>();
TestExclusionListTasks (5)
src\tasks\AndroidAppBuilder\ApkBuilder.cs (5)
34public ITaskItem[] EnvironmentVariables { get; set; } = Array.Empty<ITaskItem>(); 38public string[] RuntimeComponents { get; set; } = Array.Empty<string>(); 41public ITaskItem[] Assemblies { get; set; } = Array.Empty<ITaskItem>(); 42public ITaskItem[] ExtraLinkerArguments { get; set; } = Array.Empty<ITaskItem>(); 43public string[] NativeDependencies { get; set; } = Array.Empty<string>();
UIAutomationClientSideProviders (5)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (3)
236return Array.Empty<double>(); 250return Array.Empty<double>(); 536return Array.Empty<IRawElementProviderSimple>();
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
169return Array.Empty<double>(); 383return Array.Empty<IRawElementProviderSimple>();
UIAutomationTypes (5)
System\Windows\Automation\ControlType.cs (5)
67return ControlType.Register(id, programmaticName, stId, Array.Empty<AutomationProperty>(), Array.Empty<AutomationPattern>(), requiredPatternsSets); 74return ControlType.Register(id, programmaticName, stId, requiredProperties, Array.Empty<AutomationPattern>(), new AutomationPattern[0][]); 80return ControlType.Register(id, programmaticName, stId, Array.Empty<AutomationProperty>(), Array.Empty<AutomationPattern>(), new AutomationPattern[0][]);
WasmAppBuilder (12)
EmccCompile.cs (1)
94? Array.Empty<string>()
ManagedToNativeGenerator.cs (1)
20public string[] Assemblies { get; set; } = Array.Empty<string>();
WasmAppBuilderBaseTask.cs (8)
23public string[] Assemblies { get; set; } = Array.Empty<string>(); 30public ITaskItem[] NativeAssets { get; set; } = Array.Empty<ITaskItem>(); 39public string[] IcuDataFileNames { get; set; } = Array.Empty<string>(); 41public ITaskItem[] SatelliteAssemblies { get; set; } = Array.Empty<ITaskItem>(); 44public ITaskItem[] FilesToIncludeInFileSystem { get; set; } = Array.Empty<ITaskItem>(); 45public ITaskItem[] ExtraFilesToDeploy { get; set; } = Array.Empty<ITaskItem>(); 53public ITaskItem[] HostConfigs { get; set; } = Array.Empty<ITaskItem>(); 55public ITaskItem[] RuntimeArgsForHost { get; set; } = Array.Empty<ITaskItem>();
WasmCalculateInitialHeapSize.cs (2)
15public string[] Assemblies { get; set; } = Array.Empty<string>(); 17public string[] AOTDataSegmentSizes { get; set; } = Array.Empty<string>();
WasmBuildTasks (3)
GenerateAOTProps.cs (1)
20public ITaskItem[] Items { get; set; } = Array.Empty<ITaskItem>();
UpdateChromeVersions.cs (2)
35public string[] OSIdentifiers { get; set; } = Array.Empty<string>(); 39public string[] OSPrefixes { get; set; } = Array.Empty<string>();
WorkloadBuildTasks (3)
InstallWorkloadFromArtifacts.cs (2)
28public ITaskItem[] WorkloadIds { get; set; } = Array.Empty<ITaskItem>(); 31public ITaskItem[] InstallTargets { get; set; } = Array.Empty<ITaskItem>();
PatchNuGetConfig.cs (1)
49public string[] NuGetConfigPackageSourceMappings { get; set; } = Array.Empty<string>();