602 references to Empty
Aspire.Hosting.Dapr (11)
CommandLineBuilder.cs (11)
58return () => (args ?? Enumerable.Empty<string>()); 78return () => value == true ? new[] { name } : Enumerable.Empty<string>(); 89: Enumerable.Empty<string>(); 98: Enumerable.Empty<string>(); 107: Enumerable.Empty<string>(); 119: Enumerable.Empty<string>(); 128: Enumerable.Empty<string>(); 137: Enumerable.Empty<string>(); 145return (values ?? Enumerable.Empty<string>()).SelectMany(value => NamedArg(name, value, assignValue)()); 153return (values ?? Enumerable.Empty<string>()).SelectMany(value => ModelNamedArg(name, value, assignValue)()); 197: Enumerable.Empty<string>();
BasketService (1)
Repositories\RedisBasketRepository.cs (1)
27return data?.Select(k => k.ToString()) ?? Enumerable.Empty<string>();
BoundTreeGenerator (3)
BoundNodeClassWriter.cs (3)
697return Enumerable.Empty<Field>(); 704return Enumerable.Empty<Field>(); 745return Enumerable.Empty<Field>();
FormatterWebSite (1)
Models\RecursiveIdentifier.cs (1)
23return Enumerable.Empty<ValidationResult>();
illink (4)
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (1)
75 return Dictionary?.GetEnumerator () ?? Enumerable.Empty<KeyValuePair<TKey, TValue>> ().GetEnumerator ();
installer.tasks (4)
GenerateTestSharedFrameworkDepsFile.cs (3)
69resourceAssemblies: Enumerable.Empty<ResourceAssembly>(), 70dependencies: Enumerable.Empty<Dependency>(), 81Enumerable.Empty<CompilationLibrary>(),
StaticFileRegeneration\EnumerableExtensions.cs (1)
15return source ?? Enumerable.Empty<T>();
IOperationGenerator (3)
IOperationClassWriter.cs (3)
224return Enumerable.Empty<string>(); 230return Enumerable.Empty<string>(); 297WriteComments(prop.Comments, operationKinds: Enumerable.Empty<string>(), writeReservedRemark: false);
Microsoft.AspNetCore.App.Analyzers (1)
Mvc\DetectOverriddenAuthorizeAttribute.cs (1)
199foreach (var extraAttribute in localAuthorizeAttributeOverflow ?? Enumerable.Empty<AttributeData>())
Microsoft.AspNetCore.Authorization (1)
AuthorizationPolicy.cs (1)
101Enumerable.Empty<AuthorizationPolicy>());
Microsoft.AspNetCore.Components.Endpoints (1)
Discovery\PageComponentBuilder.cs (1)
91return $"Type = {PageType.FullName}, RouteTemplates = {string.Join(", ", RouteTemplates ?? Enumerable.Empty<string>())}";
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentEndpointDataSourceTest.cs (1)
239services?.GetService<IEnumerable<RenderModeEndpointProvider>>() ?? Enumerable.Empty<RenderModeEndpointProvider>(),
Microsoft.AspNetCore.Components.Web.Tests (1)
Virtualization\VirtualizeTest.cs (1)
103=> ValueTask.FromResult(new ItemsProviderResult<TItem>(Enumerable.Empty<TItem>(), 0));
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostConfiguration.cs (1)
98foreach (var child in provider.GetChildKeys(Enumerable.Empty<string>(), parentPath: null))
Microsoft.AspNetCore.Diagnostics (4)
ExceptionHandler\ExceptionHandlerMiddleware.cs (1)
38Enumerable.Empty<IExceptionHandler>(),
src\Shared\StackTrace\StackFrame\StackFrameSourceCodeInfo.cs (3)
39public IEnumerable<string> PreContextCode { get; set; } = Enumerable.Empty<string>(); 44public IEnumerable<string> ContextCode { get; set; } = Enumerable.Empty<string>(); 49public IEnumerable<string> PostContextCode { get; set; } = Enumerable.Empty<string>();
Microsoft.AspNetCore.Diagnostics.Tests (8)
ExceptionDetailsProviderTest.cs (7)
161ExpectedPreErrorCode = Enumerable.Empty<string>(), 185ExpectedPostErrorCode = Enumerable.Empty<string>() 195ExpectedPostErrorCode = Enumerable.Empty<string>() 225ExpectedPreErrorCode = Enumerable.Empty<string>(), 227ExpectedPostErrorCode = Enumerable.Empty<string>() 238ExpectedPreErrorCode = Enumerable.Empty<string>(), 240ExpectedPostErrorCode = Enumerable.Empty<string>()
ExceptionHandlerMiddlewareTest.cs (1)
519exceptionHandlers ?? Enumerable.Empty<IExceptionHandler>(),
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServerCallContextTests.cs (1)
90MethodOptions.Create(Enumerable.Empty<GrpcServiceOptions>()),
Microsoft.AspNetCore.Hosting (3)
src\Shared\StackTrace\StackFrame\StackFrameSourceCodeInfo.cs (3)
39public IEnumerable<string> PreContextCode { get; set; } = Enumerable.Empty<string>(); 44public IEnumerable<string> ContextCode { get; set; } = Enumerable.Empty<string>(); 49public IEnumerable<string> PostContextCode { get; set; } = Enumerable.Empty<string>();
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\ProducesResponseTypeMetadata.cs (1)
31ContentTypes = Enumerable.Empty<string>();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
59return Enumerable.Empty<string>(); 64return Enumerable.Empty<string>();
Microsoft.AspNetCore.Identity.InMemory.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
59return Enumerable.Empty<string>(); 64return Enumerable.Empty<string>();
Microsoft.AspNetCore.Identity.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
59return Enumerable.Empty<string>(); 64return Enumerable.Empty<string>();
Microsoft.AspNetCore.Mvc (1)
MvcServiceCollectionExtensions.cs (1)
346IEnumerable<string> ICompilationReferencesProvider.GetReferencePaths() => Enumerable.Empty<string>();
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (1)
633var bindingInfo = BindingInfo.GetBindingInfo(Enumerable.Empty<object>(), propertyMetadata);
EndpointModelMetadata.cs (1)
44public override ModelPropertyCollection Properties { get; } = new(Enumerable.Empty<ModelMetadata>());
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationParts\NullApplicationPartFactory.cs (1)
20return Enumerable.Empty<ApplicationPart>();
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
73return Enumerable.Empty<KeyValuePair<string, StringValues>>().GetEnumerator();
Microsoft.AspNetCore.Mvc.Core.Test (26)
ActionConstraints\ActionConstraintCacheTest.cs (2)
160Enumerable.Empty<IActionDescriptorProvider>(), 161Enumerable.Empty<IActionDescriptorChangeProvider>(),
ApplicationModels\EndpointMetadataProviderTest.cs (1)
275var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), serviceProvider);
Authorization\AuthorizeFilterTest.cs (1)
633Enumerable.Empty<IFilterMetadata>().ToList()
Controllers\ControllerFactoryProviderTest.cs (6)
23Enumerable.Empty<IControllerPropertyActivator>()); 49Enumerable.Empty<IControllerPropertyActivator>()); 74Enumerable.Empty<IControllerPropertyActivator>()); 97Enumerable.Empty<IControllerPropertyActivator>()); 154Enumerable.Empty<IControllerPropertyActivator>()); 163Enumerable.Empty<IControllerPropertyActivator>());
Infrastructure\ActionSelectorTest.cs (3)
978Enumerable.Empty<IActionDescriptorChangeProvider>(), 1137Enumerable.Empty<IActionDescriptorProvider>(), 1138Enumerable.Empty<IActionDescriptorChangeProvider>(),
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (2)
26Enumerable.Empty<IActionDescriptorChangeProvider>(), 49Enumerable.Empty<IActionDescriptorChangeProvider>(),
ModelBinding\Metadata\DefaultModelMetadataTest.cs (2)
21Enumerable.Empty<IMetadataDetailsProvider>()); 81Enumerable.Empty<IMetadataDetailsProvider>());
Routing\ActionEndpointDataSourceBaseTest.cs (1)
149var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), serviceProvider);
Routing\ActionEndpointFactoryTest.cs (1)
29Factory = new ActionEndpointFactory(Services.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), Services);
Routing\ControllerLinkGeneratorExtensionsTest.cs (1)
211endpoints = Enumerable.Empty<Endpoint>();
Routing\EndpointRoutingUrlHelperTest.cs (3)
118return CreateUrlHelper(Enumerable.Empty<RouteEndpoint>(), appRoot, host, protocol); 151return CreateServices(Enumerable.Empty<Endpoint>()); 281endpoints = Enumerable.Empty<Endpoint>();
Routing\KnownRouteValueConstraintTests.cs (1)
289Enumerable.Empty<IActionDescriptorChangeProvider>(),
Routing\PageLinkGeneratorExtensionsTest.cs (1)
181endpoints = Enumerable.Empty<Endpoint>();
TestApplicationPart.cs (1)
14Types = Enumerable.Empty<TypeInfo>();
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsModelValidator.cs (1)
129return Enumerable.Empty<ModelValidationResult>();
ValidatableObjectAdapter.cs (1)
17return Enumerable.Empty<ModelValidationResult>();
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
DataAnnotationsModelValidatorTest.cs (1)
275Enumerable.Empty<string>(),
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
DelegatingEnumerable.cs (1)
30_source = Enumerable.Empty<TDeclared>();
Microsoft.AspNetCore.Mvc.Razor (4)
RazorViewEngine.cs (4)
115return new RazorPageResult(pageName, Enumerable.Empty<string>()); 138return new RazorPageResult(pagePath, Enumerable.Empty<string>()); 163return ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>()); 178return ViewEngineResult.NotFound(viewPath, Enumerable.Empty<string>());
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
AssemblyPartExtensions.cs (1)
23return Enumerable.Empty<string>();
PageDirectiveFeature.cs (2)
68return Enumerable.Empty<RazorProjectItem>(); 73return Enumerable.Empty<RazorProjectItem>();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
CompilerFailedExceptionFactoryTest.cs (1)
57RazorCodeDocument.Create(RazorSourceDocument.Create("Test", "Index.cshtml"), Enumerable.Empty<RazorSourceDocument>()),
TestInfrastructure\VirtualRazorProjectFileSystem.cs (1)
14return directory?.EnumerateItems() ?? Enumerable.Empty<RazorProjectItem>();
Microsoft.AspNetCore.Mvc.Razor.Test (26)
RazorViewTest.cs (9)
545.Returns(new RazorPageResult(layoutPath, Enumerable.Empty<string>())) 584.Returns(new RazorPageResult(layoutPath, Enumerable.Empty<string>())) 861.Returns(new RazorPageResult("NestedLayout", Enumerable.Empty<string>())); 867.Returns(new RazorPageResult("Layout", Enumerable.Empty<string>())); 1217.Returns(new RazorPageResult("_Layout", Enumerable.Empty<string>())); 1265.Returns(new RazorPageResult("_Layout1", Enumerable.Empty<string>())); 1271.Returns(new RazorPageResult("_Layout2", Enumerable.Empty<string>())); 1399.Returns(new RazorPageResult("layout-1", Enumerable.Empty<string>())); 1454.Returns(new RazorPageResult("layout-1", Enumerable.Empty<string>()));
TagHelpers\TagHelperComponentTagHelperTest.cs (8)
24Enumerable.Empty<TagHelperAttribute>()), 73Enumerable.Empty<TagHelperAttribute>()), 129Enumerable.Empty<TagHelperAttribute>()), 160Enumerable.Empty<TagHelperAttribute>()), 191Enumerable.Empty<TagHelperAttribute>()), 226Enumerable.Empty<TagHelperAttribute>()), 259Enumerable.Empty<TagHelperAttribute>()), 290Enumerable.Empty<TagHelperAttribute>()),
TagHelpers\UrlResolutionTagHelperTest.cs (8)
79Enumerable.Empty<TagHelperAttribute>()), 121Enumerable.Empty<TagHelperAttribute>()), 181Enumerable.Empty<TagHelperAttribute>()), 239Enumerable.Empty<TagHelperAttribute>()), 295Enumerable.Empty<TagHelperAttribute>()), 326Enumerable.Empty<TagHelperAttribute>()), 375Enumerable.Empty<TagHelperAttribute>()), 421Enumerable.Empty<TagHelperAttribute>()),
TestApplicationPart.cs (1)
14Types = Enumerable.Empty<TypeInfo>();
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
Infrastructure\DefaultPageLoaderTest.cs (6)
38var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 121var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 161var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 238var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 300var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>()); 337var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), Mock.Of<IServiceProvider>());
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (1)
149var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<IRequestDelegateFactory>(), serviceProvider);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
SelectTagHelper.cs (1)
124var items = Items ?? Enumerable.Empty<SelectListItem>();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (57)
AnchorTagHelperTest.cs (11)
94Enumerable.Empty<TagHelperAttribute>()), 144Enumerable.Empty<TagHelperAttribute>()), 196Enumerable.Empty<TagHelperAttribute>()), 254Enumerable.Empty<TagHelperAttribute>()), 313Enumerable.Empty<TagHelperAttribute>()), 371Enumerable.Empty<TagHelperAttribute>()), 422Enumerable.Empty<TagHelperAttribute>()), 519Enumerable.Empty<TagHelperAttribute>()), 559Enumerable.Empty<TagHelperAttribute>()), 597Enumerable.Empty<TagHelperAttribute>()), 635Enumerable.Empty<TagHelperAttribute>()),
FormActionTagHelperTest.cs (5)
542Enumerable.Empty<TagHelperAttribute>()), 582Enumerable.Empty<TagHelperAttribute>()), 620Enumerable.Empty<TagHelperAttribute>()), 658Enumerable.Empty<TagHelperAttribute>()), 696Enumerable.Empty<TagHelperAttribute>()),
FormTagHelperTest.cs (13)
440Enumerable.Empty<TagHelperAttribute>()), 512Enumerable.Empty<TagHelperAttribute>()), 631Enumerable.Empty<TagHelperAttribute>()), 688Enumerable.Empty<TagHelperAttribute>()), 745Enumerable.Empty<TagHelperAttribute>()), 803Enumerable.Empty<TagHelperAttribute>()), 858Enumerable.Empty<TagHelperAttribute>()), 904Enumerable.Empty<TagHelperAttribute>()), 989Enumerable.Empty<TagHelperAttribute>()), 1039Enumerable.Empty<TagHelperAttribute>()), 1075Enumerable.Empty<TagHelperAttribute>()), 1109Enumerable.Empty<TagHelperAttribute>()), 1143Enumerable.Empty<TagHelperAttribute>()),
GlobbingUrlBuilderTest.cs (1)
542var patternMatchingResult = new PatternMatchingResult(Enumerable.Empty<FilePatternMatch>());
ImageTagHelperTest.cs (1)
362.Returns(Enumerable.Empty<IFileInfo>().GetEnumerator());
InputTagHelperTest.cs (13)
86Enumerable.Empty<TagHelperAttribute>()), 134Enumerable.Empty<TagHelperAttribute>()), 181Enumerable.Empty<TagHelperAttribute>()), 225Enumerable.Empty<TagHelperAttribute>()), 642Enumerable.Empty<TagHelperAttribute>()), 1155Enumerable.Empty<TagHelperAttribute>()), 1758Enumerable.Empty<TagHelperAttribute>()), 1994Enumerable.Empty<TagHelperAttribute>()), 2074Enumerable.Empty<TagHelperAttribute>()), 2136Enumerable.Empty<TagHelperAttribute>()), 2204Enumerable.Empty<TagHelperAttribute>()), 2270Enumerable.Empty<TagHelperAttribute>()), 2328Enumerable.Empty<TagHelperAttribute>()),
LinkTagHelperTest.cs (1)
1172.Returns(Enumerable.Empty<IFileInfo>().GetEnumerator());
ScriptTagHelperTest.cs (1)
1139.Returns(Enumerable.Empty<IFileInfo>().GetEnumerator());
SelectTagHelperTest.cs (6)
101new[] { (IEnumerable<SelectListItem>)null, Enumerable.Empty<SelectListItem>() }, 201Enumerable.Empty<TagHelperAttribute>()), 291Enumerable.Empty<TagHelperAttribute>()), 382Enumerable.Empty<TagHelperAttribute>()), 471Enumerable.Empty<TagHelperAttribute>()), 635Enumerable.Empty<TagHelperAttribute>());
TextAreaTagHelperTest.cs (1)
123Enumerable.Empty<TagHelperAttribute>()),
ValidationMessageTagHelperTest.cs (4)
261Enumerable.Empty<TagHelperAttribute>()), 334Enumerable.Empty<TagHelperAttribute>()), 396Enumerable.Empty<TagHelperAttribute>()), 437Enumerable.Empty<TagHelperAttribute>()),
Microsoft.AspNetCore.Mvc.Test (1)
Routing\ActionConstraintMatcherPolicyTest.cs (1)
453Enumerable.Empty<IActionDescriptorChangeProvider>(),
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
ViewEngines\CompositeViewEngine.cs (2)
74return ViewEngineResult.NotFound(viewName, searchedLocations ?? Enumerable.Empty<string>()); 122return ViewEngineResult.NotFound(viewPath, searchedLocations ?? Enumerable.Empty<string>());
ViewEngines\ViewEngineResult.cs (1)
25public IEnumerable<string> SearchedLocations { get; private init; } = Enumerable.Empty<string>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (102)
DefaultDisplayTemplatesTest.cs (12)
127.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 130.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 262.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 265.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 284.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 287.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 306.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 309.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 329.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 332.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 358.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 377.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>()));
DefaultEditorTemplatesTest.cs (36)
357.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 360.Returns(ViewEngineResult.NotFound("", Enumerable.Empty<string>())); 575.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 578.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 608.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 611.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 640.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 643.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 683.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 686.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 725.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 728.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 768.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 771.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 809.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 812.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 847.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 850.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 913.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 916.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 984.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 987.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1054.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1057.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1123.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1126.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1189.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1192.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1226.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1229.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1250.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1253.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1275.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1278.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1306.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 1325.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>()));
DefaultHtmlGeneratorTest.cs (1)
499viewContext.ViewData[nameof(Model.Name)] = Enumerable.Empty<SelectListItem>();
FormatWeekHelperTest.cs (1)
23Enumerable.Empty<IMetadataDetailsProvider>());
PartialViewResultExecutorTest.cs (5)
32.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())) 116.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())); 147.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())) 253.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())) 352(executing, name, isMainPage) => ViewEngineResult.NotFound(name, Enumerable.Empty<string>()));
PartialViewResultTest.cs (3)
80.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())) 113.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())) 202.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>()))
Rendering\DefaultTemplatesUtilities.cs (1)
318.Returns(ViewEngineResult.NotFound("MyView", Enumerable.Empty<string>()))
Rendering\HtmlHelperDisplayExtensionsTest.cs (18)
26.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 29.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 57.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 78.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 140.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 166.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 192.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 220.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 248.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 269.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 295.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 326.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 367.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 392.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 420.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 441.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 467.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 494.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>()));
Rendering\HtmlHelperEditorExtensionsTest.cs (2)
24.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>())); 50.Returns(ViewEngineResult.NotFound(string.Empty, Enumerable.Empty<string>()));
Rendering\HtmlHelperPartialExtensionsTest.cs (4)
413.Returns(ViewEngineResult.NotFound("test-view", Enumerable.Empty<string>())) 438.Returns(ViewEngineResult.NotFound("test-view", Enumerable.Empty<string>())) 502.Returns(ViewEngineResult.NotFound("test-view", Enumerable.Empty<string>())) 527.Returns(ViewEngineResult.NotFound("test-view", Enumerable.Empty<string>()))
Rendering\HtmlHelperSelectTest.cs (2)
1408{ typeof(EmptyEnum), Enumerable.Empty<SelectListItem>() }, 1409{ typeof(EmptyEnum?), Enumerable.Empty<SelectListItem>() },
TestApplicationPart.cs (1)
14Types = Enumerable.Empty<TypeInfo>();
ViewComponents\ViewViewComponentResultTest.cs (6)
37.Returns(ViewEngineResult.NotFound("some-view", Enumerable.Empty<string>())) 159.Returns(ViewEngineResult.NotFound("Components/Invoke/some-view", Enumerable.Empty<string>())) 193.Returns(ViewEngineResult.NotFound("some-view", Enumerable.Empty<string>())) 271.Returns(ViewEngineResult.NotFound("some-view", Enumerable.Empty<string>())) 307.Returns(ViewEngineResult.NotFound("some-view", Enumerable.Empty<string>())) 342.Returns(ViewEngineResult.NotFound("some-view", Enumerable.Empty<string>()))
ViewEngines\CompositeViewEngineTest.cs (3)
104.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())); 242.Returns(ViewEngineResult.NotFound(expectedViewName, Enumerable.Empty<string>())); 371.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>()));
ViewResultExecutorTest.cs (5)
31.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())) 114.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())); 145.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())); 249.Returns(ViewEngineResult.NotFound("myview", Enumerable.Empty<string>())); 342(path, name, partial) => ViewEngineResult.NotFound(name, Enumerable.Empty<string>()));
ViewResultTest.cs (2)
85.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>())) 214.Returns(ViewEngineResult.NotFound(viewName, Enumerable.Empty<string>()))
Microsoft.AspNetCore.Razor.Test (29)
TagHelpers\ReadOnlyTagHelperAttributeListTest.cs (13)
607{ new[] { A }, "_AName_", Enumerable.Empty<TagHelperAttribute>(), false }, 608{ new[] { A }, "completely different", Enumerable.Empty<TagHelperAttribute>(), false }, 609{ new[] { A, B }, "_AName_", Enumerable.Empty<TagHelperAttribute>(), false }, 610{ new[] { A, B }, "completely different", Enumerable.Empty<TagHelperAttribute>(), false }, 611{ new[] { A, B, C }, "_BName_", Enumerable.Empty<TagHelperAttribute>(), false }, 612{ new[] { A, B, C }, "way different", Enumerable.Empty<TagHelperAttribute>(), false }, 613{ new[] { A, A2, B, C }, "_cnamE_", Enumerable.Empty<TagHelperAttribute>(), false }, 614{ new[] { A, A2, B, C }, "way different", Enumerable.Empty<TagHelperAttribute>(), false }, 615{ new[] { A, A2, A3, B, C }, "_cnamE_", Enumerable.Empty<TagHelperAttribute>(), false }, 616{ new[] { A, A2, A3, B, C }, "different", Enumerable.Empty<TagHelperAttribute>(), false }, 676var attributes = new TestableReadOnlyTagHelperAttributes(Enumerable.Empty<TagHelperAttribute>()); 698var attributes = new TestableReadOnlyTagHelperAttributes(Enumerable.Empty<TagHelperAttribute>()); 716var attributes = new TestableReadOnlyTagHelperAttributes(Enumerable.Empty<TagHelperAttribute>());
TagHelpers\TagHelperAttributeListTest.cs (16)
162{ Enumerable.Empty<TagHelperAttribute>(), "Set", set.Value, new[] { set } }, 241{ Enumerable.Empty<TagHelperAttribute>(), A, new[] { A } }, 279{ Enumerable.Empty<TagHelperAttribute>(), A, 0, new[] { A } }, 339{ Enumerable.Empty<TagHelperAttribute>(), new[] { A }, 0, new[] { A } }, 340{ Enumerable.Empty<TagHelperAttribute>(), new[] { A, B }, 0, new[] { A, B } }, 391{ new[] { A }, "AName", Enumerable.Empty<TagHelperAttribute>(), true }, 392{ new[] { A }, "AnAmE", Enumerable.Empty<TagHelperAttribute>(), true }, 407{ new[] { A, A3 }, "AName", Enumerable.Empty<TagHelperAttribute>(), true }, 408{ new[] { A3, A }, "aname", Enumerable.Empty<TagHelperAttribute>(), true }, 409{ new[] { A, A2, A3 }, "AName", Enumerable.Empty<TagHelperAttribute>(), true }, 413{ Enumerable.Empty<TagHelperAttribute>(), "_0_", Enumerable.Empty<TagHelperAttribute>(), false }, 456var empty = Enumerable.Empty<TagHelperAttribute>(); 486{ Enumerable.Empty<TagHelperAttribute>(), new TagHelperAttribute("DoesNotExist", "_0_"), Enumerable.Empty<TagHelperAttribute>(), false }, 533{ new[] { A }, 0, Enumerable.Empty<TagHelperAttribute>() },
Microsoft.AspNetCore.ResponseCompression (3)
ResponseCompressionOptions.cs (2)
17public IEnumerable<string> MimeTypes { get; set; } = Enumerable.Empty<string>(); 22public IEnumerable<string> ExcludedMimeTypes { get; set; } = Enumerable.Empty<string>();
ResponseCompressionProvider.cs (1)
65responseCompressionOptions.ExcludedMimeTypes ?? Enumerable.Empty<string>(),
Microsoft.AspNetCore.Routing (3)
Template\TemplatePart.cs (3)
44InlineConstraints = parameter.ParameterPolicies?.Select(p => new InlineConstraint(p)) ?? Enumerable.Empty<InlineConstraint>(); 97InlineConstraints = inlineConstraints ?? Enumerable.Empty<InlineConstraint>(), 137public IEnumerable<InlineConstraint> InlineConstraints { get; private set; } = Enumerable.Empty<InlineConstraint>();
Microsoft.AspNetCore.Routing.Tests (1)
RouteValuesAddressSchemeTest.cs (1)
458var namedMatches = state.NamedMatches.Aggregate(Enumerable.Empty<Tree.OutboundMatch>(),
Microsoft.AspNetCore.Server.IIS (3)
src\Shared\StackTrace\StackFrame\StackFrameSourceCodeInfo.cs (3)
39public IEnumerable<string> PreContextCode { get; set; } = Enumerable.Empty<string>(); 44public IEnumerable<string> ContextCode { get; set; } = Enumerable.Empty<string>(); 49public IEnumerable<string> PostContextCode { get; set; } = Enumerable.Empty<string>();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\ConfigSectionClone.cs (1)
18var children = configSection.GetChildren() ?? Enumerable.Empty<IConfigurationSection>();
Microsoft.AspNetCore.Session (1)
NoOpSessionStore.cs (1)
26public IEnumerator<KeyValuePair<EncodedKey, byte[]>> GetEnumerator() => Enumerable.Empty<KeyValuePair<EncodedKey, byte[]>>().GetEnumerator();
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\StackTrace\StackFrame\StackFrameSourceCodeInfo.cs (3)
39public IEnumerable<string> PreContextCode { get; set; } = Enumerable.Empty<string>(); 44public IEnumerable<string> ContextCode { get; set; } = Enumerable.Empty<string>(); 49public IEnumerable<string> PostContextCode { get; set; } = Enumerable.Empty<string>();
Microsoft.Build (3)
BackEnd\BuildManager\BuildManager.cs (1)
2303foreach (var cacheResultInner in cacheResult.BuildResult?.ResultsByTarget ?? Enumerable.Empty<KeyValuePair<string, TargetResult>>())
Evaluation\EvaluatorMetadataTable.cs (1)
47internal IEnumerable<EvaluatorMetadata> Entries => _metadata?.Values ?? Enumerable.Empty<EvaluatorMetadata>();
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
Microsoft.Build.BuildCheck.UnitTests (1)
EndToEndTests.cs (1)
629foreach (string supplementalAssetName in supplementalAssetNames ?? Enumerable.Empty<string>())
Microsoft.Build.Engine.UnitTests (12)
BackEnd\LoggingService_Tests.cs (2)
978BuildEventContext projectStarted = loggingService.LogProjectStarted(buildEventContext, 0, buildEventContext.ProjectInstanceId, BuildEventContext.Invalid, "projectFile", "Build", Enumerable.Empty<DictionaryEntry>(), Enumerable.Empty<DictionaryEntry>());
BackEnd\SdkResolverService_Tests.cs (4)
96Enumerable.Empty<string>())) 302Enumerable.Empty<string>())); 385Enumerable.Empty<string>(), 553Enumerable.Empty<string>()));
Evaluation\SdkResultEvaluation_Tests.cs (2)
118Enumerable.Empty<string>(), 436Enumerable.Empty<string>(),
Globbing\CompositeGlob_Tests.cs (1)
144IMSBuildGlob composite = CompositeGlob.Create(Enumerable.Empty<IMSBuildGlob>());
Globbing\MSBuildGlobWithGaps_Tests.cs (1)
18var glob = new MSBuildGlobWithGaps(MSBuildGlob.Parse("a*"), Enumerable.Empty<IMSBuildGlob>());
Graph\ProjectGraph_Tests.cs (1)
50var projectGraph = new ProjectGraph(Enumerable.Empty<ProjectGraphEntryPoint>());
InternalEngineHelpers.cs (1)
89sdkResultPaths = Enumerable.Empty<string>();
Microsoft.Build.Framework (1)
ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
Microsoft.Build.Tasks.Core (1)
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (2)
2186return Enumerable.Empty<TResult>(); 2192return Enumerable.Empty<TResult>();
Microsoft.Build.Utilities.Core (1)
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
Microsoft.Build.Utilities.UnitTests (1)
ToolLocationHelper_Tests.cs (1)
51string[] returnValue = ToolLocationHelper.GetApiContractReferences(Enumerable.Empty<ApiContract>(), string.Empty);
Microsoft.Cci.Extensions (6)
Extensions\FakeCustomAttribute.cs (2)
30return Enumerable.Empty<IMetadataExpression>(); 46return Enumerable.Empty<IMetadataNamedArgument>();
Filters\BaselineDifferenceFilter.cs (1)
72return Enumerable.Empty<string>();
Writers\CSharp\CSDeclarationWriter.Fields.cs (2)
104private IEnumerable<ICustomAttribute> _attributes = System.Linq.Enumerable.Empty<ICustomAttribute>(); 158public IEnumerable<ICustomModifier> CustomModifiers => System.Linq.Enumerable.Empty<ICustomModifier>();
Writers\CSharp\CSharpWriter.cs (1)
110foreach (var typeList in ConditionalTypeLists ?? Enumerable.Empty<ConditionalTypeList>())
Microsoft.CodeAnalysis (3)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (2)
98return Enumerable.Empty<T>().Last(); 110return Enumerable.Empty<TResult>();
Microsoft.CodeAnalysis.CodeStyle (3)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (2)
98return Enumerable.Empty<T>().Last(); 110return Enumerable.Empty<TResult>();
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (3)
60t => (selector(t), Enumerable.Empty<TNode>()), 82t => (t, Enumerable.Empty<TNode>()), 126t => (t, Enumerable.Empty<TNode>()),
Microsoft.CodeAnalysis.Collections.Package (3)
ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
ImmutableSegmentedListExtensions.cs (2)
98return Enumerable.Empty<T>().Last(); 110return Enumerable.Empty<TResult>();
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Invocation.cs (1)
2163return BuildArgumentsForErrorRecovery(analyzedArguments, Enumerable.Empty<ImmutableArray<ParameterSymbol>>());
Compilation\CSharpCompilation.cs (1)
3226var result = _lazyDeclarationDiagnostics?.AsEnumerable() ?? Enumerable.Empty<Diagnostic>();
FlowAnalysis\CSharpDataFlowAnalysis.cs (2)
266readInside = writtenInside = readOutside = writtenOutside = captured = unsafeAddressTaken = capturedInside = capturedOutside = Enumerable.Empty<Symbol>(); 267usedLocalFunctions = Enumerable.Empty<MethodSymbol>();
FlowAnalysis\ReadWriteWalker.cs (2)
40readInside = writtenInside = readOutside = writtenOutside = captured = unsafeAddressTaken = capturedInside = capturedOutside = Enumerable.Empty<Symbol>(); 41usedLocalFunctions = Enumerable.Empty<MethodSymbol>();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.SingleLineRewriter.cs (1)
28token = token.WithLeadingTrivia(Enumerable.Empty<SyntaxTrivia>());
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
278var orphanedTrivia = Enumerable.Empty<SyntaxTrivia>();
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
278var orphanedTrivia = Enumerable.Empty<SyntaxTrivia>();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\CompilationAPITests.cs (2)
495comp = comp.AddReferences(Enumerable.Empty<MetadataReference>()); 798comp = comp.AddSyntaxTrees(Enumerable.Empty<SyntaxTree>());
Symbols\MockSymbolTests.cs (3)
26NamedTypeSymbol elementType = new MockNamedTypeSymbol("TestClass", Enumerable.Empty<Symbol>()); // this can be any type. 53NamedTypeSymbol pointedAtType = new MockNamedTypeSymbol("TestClass", Enumerable.Empty<Symbol>()); // this can be any type. 69NamedTypeSymbol container = new MockNamedTypeSymbol("TestClass", Enumerable.Empty<Symbol>(), TypeKind.Class);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxFactoryTests.cs (1)
254var empty2 = SyntaxFactory.SeparatedList(System.Linq.Enumerable.Empty<TypeParameterSyntax>());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilingTestBase.cs (1)
34manifestResources: Enumerable.Empty<ResourceDescription>());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.SingleLineRewriter.cs (1)
28token = token.WithLeadingTrivia(Enumerable.Empty<SyntaxTrivia>());
Microsoft.CodeAnalysis.EditorFeatures (1)
ExternalAccess\UnitTesting\UnitTestingReferencesService.cs (1)
22Enumerable.Empty<(string MethodFullyQualifedName, string MethodFilePath, string MethodOutputFilePath)>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (4)
80CommentSelection(code, Enumerable.Empty<TextChange>(), supportBlockComments: true); 94CommentSelection(code, Enumerable.Empty<TextChange>(), supportBlockComments: true); 486UncommentSelection(code, Enumerable.Empty<TextChange>(), new Span(17, 0), supportBlockComments: true); 493UncommentSelection(code, Enumerable.Empty<TextChange>(), new Span(8, 0), supportBlockComments: true);
Microsoft.CodeAnalysis.ExternalAccess.Xaml (5)
Internal\DescriptionService.cs (5)
38return Enumerable.Empty<TaggedText>(); 44return Enumerable.Empty<TaggedText>(); 50return Enumerable.Empty<TaggedText>(); 57return Enumerable.Empty<TaggedText>(); 63return Enumerable.Empty<TaggedText>();
Microsoft.CodeAnalysis.Features (1)
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
154private static readonly Task<IEnumerable<Diagnostic>> EmptyDiagnosticResult = Task.FromResult(Enumerable.Empty<Diagnostic>());
Microsoft.CodeAnalysis.LanguageServer (1)
ExportProviderBuilder.cs (1)
88var erroredParts = configuration.CompositionErrors.FirstOrDefault()?.SelectMany(error => error.Parts).Select(part => part.Definition.Type.Name) ?? Enumerable.Empty<string>();
Microsoft.CodeAnalysis.UnitTests (7)
Collections\ImmutableDictionaryTestBase.cs (1)
312Assert.True(IsSame(map, map.RemoveRange(Enumerable.Empty<TKey>())));
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (2)
198Assert.True(IsSame(empty, empty.RemoveRange(Enumerable.Empty<int>()))); 199Assert.True(IsSame(empty, empty.AddRange(Enumerable.Empty<KeyValuePair<int, int>>())));
Collections\ImmutableSetTest.cs (2)
392Assert.True(IsSame(set, set.Except(Enumerable.Empty<T>()))); 488Assert.True(IsSame(set, set.Union(Enumerable.Empty<T>())));
Collections\ImmutableSetTest.nonnetstandard.cs (1)
139Assert.True(set.Intersect(Enumerable.Empty<T>()).Count == 0);
Collections\ImmutablesTestBase.nonnetstandard.cs (1)
51Enumerable.Empty<TElement>(),
Microsoft.CodeAnalysis.Workspaces (6)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (2)
98return Enumerable.Empty<T>().Last(); 110return Enumerable.Empty<TResult>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (3)
60t => (selector(t), Enumerable.Empty<TNode>()), 82t => (t, Enumerable.Empty<TNode>()), 126t => (t, Enumerable.Empty<TNode>()),
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (2)
98return Enumerable.Empty<T>().Last(); 110return Enumerable.Empty<TResult>();
Microsoft.DotNet.AsmDiff (5)
ApiRecordingCSharpDiffWriter.cs (1)
22: base(diffRecorder, settings, Enumerable.Empty<DiffComment>(), includePseudoCustomAttributes)
AssemblySet.cs (3)
143? Enumerable.Empty<IAssembly>() 178return Enumerable.Empty<ClassifiedAssembly>(); 212public static readonly AssemblySet Empty = new AssemblySet(null, Enumerable.Empty<IAssembly>(), "Empty");
DiffCSharpWriter.cs (1)
49_diffComments = diffComments ?? Enumerable.Empty<DiffComment>();
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PushToBuildStorage.cs (2)
139IEnumerable<BlobArtifactModel> blobArtifacts = Enumerable.Empty<BlobArtifactModel>(); 140IEnumerable<PackageArtifactModel> packageArtifacts = Enumerable.Empty<PackageArtifactModel>();
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
GeneralTests.cs (1)
254targetFeeds: Enumerable.Empty<TargetFeedSpecification>(),
Microsoft.DotNet.Build.Tasks.Packaging (9)
Extensions.cs (2)
104return Enumerable.Empty<string>(); 123return Enumerable.Empty<string>();
NuGetAssetResolver.cs (3)
60Enumerable.Empty<string>(); 79Enumerable.Empty<string>(); 216Enumerable.Empty<string>();
NuGetPack.cs (2)
370? _libPackageExcludes.Concat(AdditionalLibPackageExcludes?.Select(item => item.ItemSpec) ?? Enumerable.Empty<string>()) 380.Concat(AdditionalSymbolPackageExcludes?.Select(item => item.ItemSpec) ?? Enumerable.Empty<string>());
src\Common\Internal\EnumerableExtensions.cs (1)
19return source ?? Enumerable.Empty<T>();
ValidateFrameworkPackage.cs (1)
94return Enumerable.Empty<PackageAsset>();
Microsoft.DotNet.Build.Tasks.VisualStudio (4)
OptProf\GetRunSettingsSessionConfiguration.cs (4)
126: Enumerable.Empty<string>(); 130: Enumerable.Empty<string>(); 144: Enumerable.Empty<string>(); 148: Enumerable.Empty<string>();
Microsoft.DotNet.Build.Tasks.Workloads (4)
Msi\MsiUtils.wix.cs (1)
129return Enumerable.Empty<RelatedProduct>();
Swix\SwixComponent.cs (2)
180foreach (WorkloadId dependency in workload.Extends ?? Enumerable.Empty<WorkloadId>()) 194foreach (WorkloadPackId packId in workload.Packs ?? Enumerable.Empty<WorkloadPackId>())
WorkloadPackageBase.cs (1)
218Extract(Enumerable.Empty<string>());
Microsoft.DotNet.Internal.DependencyInjection.Testing (2)
DependencyInjectionValidation.cs (2)
68foreach (Type scopedType in additionalScopedTypes ?? Enumerable.Empty<Type>()) 76foreach (Type scopedType in additionalSingletonTypes ?? Enumerable.Empty<Type>())
Microsoft.DotNet.PackageTesting.Tests (2)
GetCompatibilePackageTargetFrameworksTests.cs (2)
139Package package = new("TestPackage", "1.0.0", filePaths, Enumerable.Empty<NuGetFramework>()); 155Package package = new("TestPackage", "1.0.0", Enumerable.Empty<string>(), dependencyFrameworks);
Microsoft.DotNet.SharedFramework.Sdk (2)
src\CreateFrameworkListFile.cs (1)
255?? Enumerable.Empty<string>())
src\GenerateSharedFrameworkDepsFile.cs (1)
109Enumerable.Empty<CompilationLibrary>(),
Microsoft.DotNet.SourceBuild.Tasks (2)
src\Common\Internal\EnumerableExtensions.cs (1)
19return source ?? Enumerable.Empty<T>();
src\WriteBuildOutputProps.cs (1)
91foreach (var extraProp in ExtraProperties ?? Enumerable.Empty<ITaskItem>())
Microsoft.DotNet.VersionTools (4)
Dependencies\BuildOutput\FileRegexPackageUpdater.cs (1)
24usedDependencyInfos = Enumerable.Empty<IDependencyInfo>();
Dependencies\BuildOutput\FileRegexReleaseUpdater.cs (1)
24usedDependencyInfos = Enumerable.Empty<IDependencyInfo>();
Dependencies\Submodule\IndicatorPackageSubmoduleUpdater.cs (1)
79usedDependencyInfos = Enumerable.Empty<BuildDependencyInfo>();
src\Common\Internal\EnumerableExtensions.cs (1)
19return source ?? Enumerable.Empty<T>();
Microsoft.DotNet.VersionTools.Tasks (2)
BaseDependenciesTask.cs (2)
95foreach (ITaskItem step in UpdateStep ?? Enumerable.Empty<ITaskItem>()) 190foreach (ITaskItem info in DependencyInfo ?? Enumerable.Empty<ITaskItem>())
Microsoft.DotNet.XUnitAssert.Tests (2)
AsyncCollectionAssertsTests.cs (1)
607 var enumerator = new SpyEnumerator<int>(Enumerable.Empty<int>().ToAsyncEnumerable());
CollectionAssertsTests.cs (1)
685 var enumerator = new SpyEnumerator<int>(Enumerable.Empty<int>());
Microsoft.Extensions.Configuration (1)
InternalConfigurationRootExtensions.cs (1)
27.Aggregate(Enumerable.Empty<string>(),
Microsoft.Extensions.Configuration.KeyPerFile.Tests (2)
ConfigurationProviderTestBase.cs (2)
414= Enumerable.Empty<(string, TestKeyValue)>(); 417= Enumerable.Empty<(string, TestSection)>();
Microsoft.Extensions.DependencyModel (10)
CompilationOptions.cs (1)
37defines: Enumerable.Empty<string?>(),
DependencyContextExtensions.cs (2)
132IEnumerable<string?> rids = Enumerable.Concat(new[] { runtimeIdentifier }, fallbacks?.Fallbacks ?? Enumerable.Empty<string?>()); 142IEnumerable<string?> rids = Enumerable.Concat(new[] { runtimeIdentifier }, fallbacks?.Fallbacks ?? Enumerable.Empty<string?>());
DependencyContextJsonReader.cs (6)
211runtimeFallbacks ?? Enumerable.Empty<RuntimeFallbacks>()); 333defines ?? Enumerable.Empty<string?>(), 441Dependencies = dependencies ?? Enumerable.Empty<Dependency>(), 742return Enumerable.Empty<Library>(); 830resourceAssemblies: targetLibrary.Resources ?? Enumerable.Empty<ResourceAssembly>(), 839IEnumerable<string> assemblies = targetLibrary.Compilations ?? Enumerable.Empty<string>();
DependencyContextPaths.cs (1)
30NonApplicationPaths = nonApplicationPaths ?? Enumerable.Empty<string>();
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (1)
HealthReportEntry.cs (1)
48Tags = tags ?? Enumerable.Empty<string>();
Microsoft.Extensions.FileProviders.Abstractions (1)
NotFoundDirectoryContents.cs (1)
27public IEnumerator<IFileInfo> GetEnumerator() => Enumerable.Empty<IFileInfo>().GetEnumerator();
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Manifest\TestEntry.cs (1)
31return Enumerable.Empty<TestEntry>();
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalDirectoryInfo.cs (1)
102_entries = Enumerable.Empty<IFileInfo>();
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\HttpClientLoggerTest.cs (2)
101Enumerable.Empty<IHttpClientLogEnricher>(), 144Enumerable.Empty<IHttpClientLogEnricher>(),
Microsoft.Extensions.Localization (1)
ResourceManagerStringLocalizer.cs (1)
143foreach (var name in resourceNames ?? Enumerable.Empty<string>())
Microsoft.Extensions.Options.Contextual.Tests (36)
ContextualOptionsFactoryTests.cs (36)
24Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 25Enumerable.Empty<IConfigureOptions<List<string>>>(), 26Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 27Enumerable.Empty<IValidateOptions<List<string>>>()); 38Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 39Enumerable.Empty<IConfigureOptions<List<string>>>(), 40Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 51Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 52Enumerable.Empty<IConfigureOptions<List<string>>>(), 53Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 72Enumerable.Empty<IConfigureOptions<List<string>>>(), 74Enumerable.Empty<IValidateOptions<List<string>>>()); 93Enumerable.Empty<IConfigureOptions<List<string>>>(), 94Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 95Enumerable.Empty<IValidateOptions<List<string>>>())); 113Enumerable.Empty<IConfigureOptions<List<string>>>(), 114Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 115Enumerable.Empty<IValidateOptions<List<string>>>()); 125Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 126Enumerable.Empty<IConfigureOptions<List<string>>>(), 128Enumerable.Empty<IValidateOptions<List<string>>>()); 138Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 139Enumerable.Empty<IConfigureOptions<List<string>>>(), 141Enumerable.Empty<IValidateOptions<List<string>>>()); 151Enumerable.Empty<ILoadContextualOptions<List<string>>>(), 153Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 154Enumerable.Empty<IValidateOptions<List<string>>>()); 196Enumerable.Empty<IConfigureOptions<List<string>>>(), 197Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 198Enumerable.Empty<IValidateOptions<List<string>>>()); 218Enumerable.Empty<IConfigureOptions<List<string>>>(), 219Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 220Enumerable.Empty<IValidateOptions<List<string>>>()); 243Enumerable.Empty<IConfigureOptions<List<string>>>(), 244Enumerable.Empty<IPostConfigureOptions<List<string>>>(), 245Enumerable.Empty<IValidateOptions<List<string>>>());
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
SyntaxContextReceiverTests.cs (1)
52var comp = await RoslynTestUtils.RunSyntaxContextReceiver(sut, Enumerable.Empty<Assembly>(), sources).ConfigureAwait(true);
Microsoft.ML.Core (1)
Data\IEstimator.cs (1)
22private static readonly SchemaShape _empty = new SchemaShape(Enumerable.Empty<Column>());
Microsoft.ML.Data (10)
Commands\TrainCommand.cs (1)
518return Enumerable.Empty<KeyValuePair<ColumnRole, string>>();
DataView\DataViewExtensions.cs (1)
50public static DataViewRowCursor GetRowCursor(this IDataView dv) => dv.GetRowCursor(Enumerable.Empty<DataViewSchema.Column>());
Evaluators\MamlEvaluator.cs (1)
119? Enumerable.Empty<KeyValuePair<RoleMappedSchema.ColumnRole, string>>()
Prediction\Calibrator.cs (2)
681return Enumerable.Empty<DataViewSchema.Column>(); 691var predictorRow = _predictor.GetRow(input, activeColumns.Count() > 0 ? OutputSchema : Enumerable.Empty<DataViewSchema.Column>());
Scorers\FeatureContributionCalculation.cs (1)
359return Enumerable.Empty<DataViewSchema.Column>();
Scorers\SchemaBindablePredictorWrapper.cs (2)
223return Enumerable.Empty<DataViewSchema.Column>(); 543return Enumerable.Empty<DataViewSchema.Column>();
Transforms\ColumnBindingsBase.cs (1)
567return Enumerable.Empty<KeyValuePair<string, DataViewType>>();
Transforms\MetadataDispatcher.cs (1)
210return Enumerable.Empty<KeyValuePair<string, DataViewType>>();
Microsoft.ML.Ensemble (1)
PipelineEnsemble.cs (1)
98return Enumerable.Empty<DataViewSchema.Column>();
Microsoft.ML.FastTree (2)
SumupPerformanceCommand.cs (1)
236return Enumerable.Empty<int>();
TreeEnsembleFeaturizer.cs (1)
368return Enumerable.Empty<DataViewSchema.Column>();
Microsoft.ML.Parquet (1)
ParquetLoader.cs (1)
478_dataSetEnumerator = Enumerable.Empty<int>().GetEnumerator();
Microsoft.ML.Recommender (1)
MatrixFactorizationPredictor.cs (1)
368return Enumerable.Empty<DataViewSchema.Column>();
Microsoft.ML.StandardTrainers (1)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (1)
146return Enumerable.Empty<DataViewSchema.Column>();
Microsoft.ML.TimeSeries (1)
SequentialTransformerBase.cs (1)
605return Enumerable.Empty<DataViewSchema.Column>();
Microsoft.VisualStudio.LanguageServices.Xaml (5)
Implementation\LanguageServer\Extensions\SymbolExtensions.cs (5)
25return Enumerable.Empty<TaggedText>(); 32return Enumerable.Empty<TaggedText>(); 38return Enumerable.Empty<TaggedText>(); 45return Enumerable.Empty<TaggedText>(); 51return Enumerable.Empty<TaggedText>();
MSBuild (1)
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
MSBuildTaskHost (1)
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
ProjectCachePlugin (1)
AssemblyMockCache.cs (1)
29foreach (var ep in context.GraphEntryPoints ?? Enumerable.Empty<ProjectGraphEntryPoint>())
System.Collections.Immutable (12)
System\Collections\Immutable\ImmutableArray_1.cs (1)
872return Enumerable.Empty<TResult>();
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
802Enumerable.Empty<KeyValuePair<TKey, TValue>>().GetEnumerator() :
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
570Enumerable.Empty<T>().GetEnumerator() :
System\Collections\Immutable\ImmutableList_1.cs (1)
900Enumerable.Empty<T>().GetEnumerator() :
System\Collections\Immutable\ImmutableQueue_1.cs (1)
249Enumerable.Empty<T>().GetEnumerator() :
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
699Enumerable.Empty<KeyValuePair<TKey, TValue>>().GetEnumerator() :
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
960Enumerable.Empty<T>().GetEnumerator() :
System\Collections\Immutable\ImmutableStack_1.cs (1)
213Enumerable.Empty<T>().GetEnumerator() :
System\Linq\ImmutableArrayExtensions.cs (4)
74Enumerable.Empty<TResult>() : 343return Enumerable.Empty<T>().First(); 421return Enumerable.Empty<T>().Last(); 493Enumerable.Empty<T>().Single(); // throw the same exception as LINQ would
System.ComponentModel.Composition (17)
System\ComponentModel\Composition\AttributedModelServices.cs (1)
155Enumerable.Empty<ComposablePart>());
System\ComponentModel\Composition\CompositionResult.cs (1)
33get { return _errors ?? Enumerable.Empty<CompositionError>(); }
System\ComponentModel\Composition\CompositionResultOfT.cs (1)
44get { return _errors ?? Enumerable.Empty<CompositionError>(); }
System\ComponentModel\Composition\Hosting\CatalogExportProvider.FactoryExport.cs (1)
69get { return Enumerable.Empty<ImportDefinition>(); }
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (5)
35catalogs ??= Enumerable.Empty<ComposablePartCatalog>(); 303var added = (addedDefinitions == null ? Enumerable.Empty<ComposablePartDefinition>() : addedDefinitions.Value); 304var removed = (removedDefinitions == null ? Enumerable.Empty<ComposablePartDefinition>() : removedDefinitions.Value); 323var added = (addedDefinitions == null ? Enumerable.Empty<ComposablePartDefinition>() : addedDefinitions.Value); 324var removed = (removedDefinitions == null ? Enumerable.Empty<ComposablePartDefinition>() : removedDefinitions.Value);
System\ComponentModel\Composition\Hosting\CompositionBatch.SingleExportComposablePart.cs (1)
37get { return Enumerable.Empty<ImportDefinition>(); }
System\ComponentModel\Composition\Hosting\CompositionScopeDefinition.cs (1)
18private IEnumerable<CompositionScopeDefinition> _children = Enumerable.Empty<CompositionScopeDefinition>();
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
476return Enumerable.Empty<KeyValuePair<string, Type>>();
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (1)
65return Enumerable.Empty<string>();
System\ComponentModel\Composition\Hosting\ImportEngine.RecompositionManager.cs (1)
74return Enumerable.Empty<PartManager>();
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (1)
163return Enumerable.Empty<ComposablePartDefinition>().GetEnumerator();
System\ComponentModel\Composition\Primitives\ComposablePartDefinition.cs (1)
16internal static readonly IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>> _EmptyExports = Enumerable.Empty<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (1)
24private readonly IEnumerable<KeyValuePair<string, Type>> _requiredMetadata = Enumerable.Empty<KeyValuePair<string, Type>>();
System.ComponentModel.TypeConverter (1)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
534return Enumerable.Empty<T>();
System.Composition.Convention (1)
System\Composition\Convention\ConventionBuilder.cs (1)
240appliedAttributes = Enumerable.Empty<Attribute>();
System.Composition.Hosting (2)
System\Composition\Hosting\Core\ExportDescriptorProvider.cs (2)
21protected static readonly IEnumerable<ExportDescriptorPromise> NoExportDescriptors = Enumerable.Empty<ExportDescriptorPromise>(); 31protected static readonly Func<IEnumerable<CompositionDependency>> NoDependencies = Enumerable.Empty<CompositionDependency>;
System.Data.Common (2)
System\Data\TypeLimiter.cs (2)
111: Enumerable.Empty<Type>(); 122: Enumerable.Empty<Type>();
System.Linq (5)
System\Linq\Enumerable.cs (1)
20/// If <see cref="Empty{TResult}"/> is ever changed to return something other than an empty array,
System\Linq\Lookup.cs (2)
134public IEnumerable<TElement> this[TKey key] => GetGrouping(key, create: false) ?? Enumerable.Empty<TElement>(); 309public IEnumerator<IGrouping<TKey, TElement>> GetEnumerator() => Enumerable.Empty<IGrouping<TKey, TElement>>().GetEnumerator();
System\Linq\Skip.cs (1)
36return iterator.Skip(count) ?? Empty<TSource>();
System\Linq\Take.SpeedOpt.cs (1)
17source is Iterator<TSource> iterator ? (iterator.Take(count) ?? Empty<TSource>()) :
System.Linq.Parallel (2)
System\Linq\Parallel\Utils\Lookup.cs (2)
75return Enumerable.Empty<TElement>(); 85return Enumerable.Empty<TElement>();
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
290return Enumerable.Empty<Pkcs12SafeBag>();
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\ChainedPartitionedRateLimiter.cs (1)
189return Enumerable.Empty<string>();
xunit.console (7)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\CompilationOptions.cs (1)
37defines: Enumerable.Empty<string>(),
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (5)
110runtimeFallbacks ?? Enumerable.Empty<RuntimeFallbacks>()); 232Dependencies = dependencies ?? Enumerable.Empty<Dependency>(), 357return Enumerable.Empty<Library>(); 436resourceAssemblies: targetLibrary.Resources ?? Enumerable.Empty<ResourceAssembly>(), 445var assemblies = (targetLibrary.Compilations != null) ? targetLibrary.Compilations : Enumerable.Empty<string>();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextPaths.cs (1)
30NonApplicationPaths = nonApplicationPaths ?? Enumerable.Empty<string>();