873 references to Enumerable
BlazorServerApp (1)
Data\WeatherForecastService.cs (1)
15return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
BlazorUnitedApp (1)
Data\WeatherForecastService.cs (1)
15return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
dotnet-user-jwts (1)
Helpers\ConsoleTable.cs (1)
89var formatRow = Enumerable.Range(0, _columns.Count)
FormatterWebSite (1)
Models\RecursiveIdentifier.cs (1)
23return Enumerable.Empty<ValidationResult>();
HostedBlazorWebassemblyApp.Server (1)
Data\WeatherForecastService.cs (1)
21return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
HttpStress (4)
Program.cs (4)
92string contentSource = string.Concat(Enumerable.Repeat("1234567890", maxContentLength / 10)); 443new StringValues(Enumerable.Range(0, i).Select(id => "value" + id).ToArray())); 452new StringValues(Enumerable.Range(0, i).Select(id => "value" + id).ToArray())); 579Task.WaitAll(Enumerable.Range(0, concurrentRequests).Select(taskNum => Task.Run(async () =>
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 ();
InMemory.FunctionalTests (7)
ChunkedRequestTests.cs (3)
310var expectedFullResponse = string.Join("", Enumerable.Repeat(response, requestCount + 1)); 441var expectedFullResponse = string.Join("", Enumerable.Repeat(response, requestCount + 1)); 616var expectedFullResponse = string.Join("", Enumerable.Repeat(response, requestCount + 1));
ConnectionLimitTests.cs (1)
144var actions = Enumerable.Repeat(AssertCounter, i + 1).ToArray();
RequestHeaderLimitsTests.cs (1)
136.Concat(Enumerable
RequestTests.cs (2)
1420Enumerable.Repeat("GET / HTTP/1.1\r\nHost:\r\n", loopCount) 1440Enumerable.Repeat(response, loopCount)
installer.tasks (5)
GenerateTestSharedFrameworkDepsFile.cs (3)
69resourceAssemblies: Enumerable.Empty<ResourceAssembly>(), 70dependencies: Enumerable.Empty<Dependency>(), 81Enumerable.Empty<CompilationLibrary>(),
RegenerateDownloadTable.cs (1)
79$"| --- | {string.Concat(Enumerable.Repeat(" :---: |", Branches.Length))}"
StaticFileRegeneration\EnumerableExtensions.cs (1)
15return source ?? Enumerable.Empty<T>();
Interop.FunctionalTests (1)
Http2\Http2RequestTests.cs (1)
128var randomBytes = Enumerable.Range(1, DataLength).Select(i => (byte)((i % 10) + 48)).ToArray();
KeyManagementSimulator (1)
Program.cs (1)
107var startOffsetsMs = Enumerable.Range(0, instanceCount).ToArray();
Microsoft.AspNetCore.Authorization (1)
AuthorizationPolicy.cs (1)
101Enumerable.Empty<AuthorizationPolicy>());
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
21private static readonly MetadataReference SystemCoreReference = MetadataReference.CreateFromFile(typeof(Enumerable).Assembly.Location);
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 (6)
Binding\FormDataMapperTests.cs (5)
431var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 462var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 508var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 569var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 1066var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size)
RazorComponentEndpointDataSourceTest.cs (1)
230services?.GetService<IEnumerable<RenderModeEndpointProvider>>() ?? Enumerable.Empty<RenderModeEndpointProvider>(),
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
21private static readonly MetadataReference SystemCoreReference = MetadataReference.CreateFromFile(typeof(Enumerable).Assembly.Location);
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\CircuitIdFactoryTest.cs (1)
31var secrets = Enumerable.Range(0, 100).Select(i => factory.CreateCircuitId()).Select(s => s.Secret).ToArray();
Microsoft.AspNetCore.Components.Tests (5)
Rendering\ArrayBuilderTest.cs (5)
61Assert.Equal(Enumerable.Repeat(5, capacity), builder.Buffer.Take(capacity)); 68var array = Enumerable.Repeat(8, 5).ToArray(); 83var array = Enumerable.Repeat(8, 5).ToArray(); 98var array = Enumerable.Repeat(8, 5).ToArray(); 118var array = Enumerable.Repeat(17, size).ToArray();
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 (9)
ExceptionDetailsProviderTest.cs (8)
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>() 276return Enumerable.Range(start, count).Select(i => string.Format(CultureInfo.InvariantCulture, "Line{0}", i));
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.Http.Abstractions.Tests (2)
HttpResponseWritingExtensionsTests.cs (1)
38var inputString = string.Concat(Enumerable.Repeat("昨日すき焼きを食べました", 1000));
PathStringTests.cs (1)
409foreach (var item in Enumerable.Range(1, 127))
Microsoft.AspNetCore.Http.Results.Tests (2)
src\Shared\ResultsTests\FileStreamResultTestBase.cs (2)
377var originalBytes = Enumerable.Range(0, 0x1234) 402var originalBytes = Enumerable.Range(0, 0x1234)
Microsoft.AspNetCore.Http.Tests (1)
RequestCookiesCollectionTests.cs (1)
62foreach (var c in Enumerable.Range(0x00, 0xFF).Select(x => (char)x))
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.Abstractions.Test (7)
ModelBinding\ModelStateDictionaryTest.cs (7)
1608var key = string.Join(".", Enumerable.Repeat("foo", stackLimit + 1)); 1626var key = string.Join(".", Enumerable.Repeat("foo", stackLimit + 1)); 1648var key = string.Join(".", Enumerable.Repeat("foo", stateDepth + 1)); 1666var key = string.Join(".", Enumerable.Repeat("foo", stateDepth + 1)); 1683var key = string.Join(".", Enumerable.Repeat("foo", stateDepth + 1)); 1701var key = string.Join(".", Enumerable.Repeat("foo", stateDepth + 1)); 1719var key = string.Join(".", Enumerable.Repeat("foo", stateDepth + 1));
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (1)
628var bindingInfo = BindingInfo.GetBindingInfo(Enumerable.Empty<object>(), propertyMetadata);
EndpointModelMetadata.cs (1)
44public override ModelPropertyCollection Properties { get; } = new(Enumerable.Empty<ModelMetadata>());
Microsoft.AspNetCore.Mvc.Core (4)
ApplicationModels\ApplicationModelConventions.cs (1)
103return Enumerable.Concat(
ApplicationParts\NullApplicationPartFactory.cs (1)
20return Enumerable.Empty<ApplicationPart>();
ModelBinding\Binders\CollectionModelBinder.cs (1)
337indexNames = Enumerable
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
73return Enumerable.Empty<KeyValuePair<string, StringValues>>().GetEnumerator();
Microsoft.AspNetCore.Mvc.Core.Test (31)
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>());
Formatters\SystemTextJsonOutputFormatterTest.cs (2)
152foreach (var i in Enumerable.Range(0, 9000)) 339foreach (var i in Enumerable.Range(0, 9000))
Infrastructure\ActionSelectorTest.cs (3)
978Enumerable.Empty<IActionDescriptorChangeProvider>(), 1137Enumerable.Empty<IActionDescriptorProvider>(), 1138Enumerable.Empty<IActionDescriptorChangeProvider>(),
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (2)
26Enumerable.Empty<IActionDescriptorChangeProvider>(), 49Enumerable.Empty<IActionDescriptorChangeProvider>(),
Infrastructure\JsonResultExecutorTestBase.cs (1)
272var model = Enumerable.Range(0, 1000).Select(p => new TestModel { Property = new string('a', 5000) }).ToArray();
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>();
src\Shared\ResultsTests\FileStreamResultTestBase.cs (2)
377var originalBytes = Enumerable.Range(0, 0x1234) 402var originalBytes = Enumerable.Range(0, 0x1234)
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.Formatters.Xml.Test (3)
XmlDataContractSerializerOutputFormatterTest.cs (1)
749foreach (var i in Enumerable.Range(0, 9000))
XmlSerializerOutputFormatterTest.cs (2)
346Enumerable.Range(1, 2).Select(i => "value" + i).AsQueryable(), typeof(IQueryable<string>), true }; 531foreach (var i in Enumerable.Range(0, 9000))
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
NewtonsoftJsonOutputFormatterTest.cs (2)
374var model = Enumerable.Range(0, 1000).Select(p => new User { FullName = new string('a', 5000) }); 470foreach (var i in Enumerable.Range(0, 9000))
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (1)
272var model = Enumerable.Range(0, 1000).Select(p => new TestModel { Property = new string('a', 5000) }).ToArray();
Microsoft.AspNetCore.Mvc.Razor (5)
ApplicationParts\ConsolidatedAssemblyApplicationPartFactory.cs (1)
22return Enumerable.Concat(
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)
RazorPageCreateTagHelperTest.cs (1)
87return typeof(Enumerable).GetMethod("Empty").MakeGenericMethod(enumerableType).Invoke(null, null);
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 (7)
54Enumerable.Empty<TagHelperAttribute>()), 93Enumerable.Empty<TagHelperAttribute>()), 150Enumerable.Empty<TagHelperAttribute>()), 208Enumerable.Empty<TagHelperAttribute>()), 264Enumerable.Empty<TagHelperAttribute>()), 295Enumerable.Empty<TagHelperAttribute>()), 341Enumerable.Empty<TagHelperAttribute>()),
TestApplicationPart.cs (1)
14Types = Enumerable.Empty<TypeInfo>();
Microsoft.AspNetCore.Mvc.RazorPages (3)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (2)
27var filters = Enumerable.Concat( 71return Enumerable.Concat(handlerMetatdata, endpointMetadata).ToList();
Infrastructure\CompiledPageActionDescriptorFactory.cs (1)
99return Enumerable.Concat(
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 (2)
PartialTagHelper.cs (1)
191var searchedLocations = Enumerable.Concat(getViewLocations, viewEngineResult.SearchedLocations);
SelectTagHelper.cs (1)
124var items = Items ?? Enumerable.Empty<SelectListItem>();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (60)
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)
298.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)
999.Returns(Enumerable.Empty<IFileInfo>().GetEnumerator());
ScriptTagHelperTest.cs (1)
860.Returns(Enumerable.Empty<IFileInfo>().GetEnumerator());
SelectTagHelperTest.cs (9)
97var multiItems = new MultiSelectList(Enumerable.Range(0, 5)); 98var selectItems = new SelectList(Enumerable.Range(0, 5)); 101new[] { (IEnumerable<SelectListItem>)null, Enumerable.Empty<SelectListItem>() }, 201Enumerable.Empty<TagHelperAttribute>()), 291Enumerable.Empty<TagHelperAttribute>()), 367var selectItems = new SelectList(Enumerable.Range(0, 5)); 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 (120)
Buffers\PagedCharBufferTest.cs (11)
153var expected = Enumerable.Repeat('d', PagedCharBuffer.PageSize); 183var expected1 = Enumerable.Repeat('d', PagedCharBuffer.PageSize); 184var expected2 = Enumerable.Repeat('d', PagedCharBuffer.PageSize + 1); 214var expected = Enumerable.Repeat('d', 2 * PagedCharBuffer.PageSize); 243var expected = Enumerable.Repeat('d', 2 * PagedCharBuffer.PageSize); 299var charsToAppend = Enumerable.Repeat(ch, 2 * length).ToArray(); 300var expected = Enumerable.Repeat(ch, PagedCharBuffer.PageSize); 333var expected1 = Enumerable.Repeat('d', PagedCharBuffer.PageSize); 334var expected2 = Enumerable.Repeat('d', PagedCharBuffer.PageSize + 1); 364var expected = Enumerable.Repeat('d', 2 * PagedCharBuffer.PageSize); 393var expected = Enumerable.Repeat('d', 2 * PagedCharBuffer.PageSize);
Buffers\ViewBufferTest.cs (6)
67var expected = Enumerable.Range(0, 32).Select(i => i.ToString(CultureInfo.InvariantCulture)); 85var expected = Enumerable.Range(0, 32).Select(i => i.ToString(CultureInfo.InvariantCulture)); 112var expected0 = Enumerable.Range(0, 32).Select(i => i.ToString(CultureInfo.InvariantCulture)); 113var expected1 = Enumerable.Range(32, 32).Select(i => i.ToString(CultureInfo.InvariantCulture)); 191var expected = string.Join("", Enumerable.Range(0, valuesToWrite).Select(_ => "abc")); 232var expected = string.Join("", Enumerable.Range(0, valuesToWrite).Select(_ => "abc"));
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>() },
Rendering\TagBuilderTest.cs (1)
126foreach (char c in Enumerable.Range(char.MinValue, char.MaxValue))
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 (4)
Matching\CandidateSetTest.cs (1)
353var candidateSet = new CandidateSet(endpoints, values, Enumerable.Range(0, count).ToArray());
Matching\HttpMethodMatcherPolicyTest.cs (1)
167var candidates = new CandidateSet(endpoints, new RouteValueDictionary[endpoints.Length], Enumerable.Repeat<int>(-1, candidateNum).ToArray());
Patterns\RoutePatternParserTest.cs (1)
732Enumerable.SequenceEqual(x.ParameterPolicies, y.ParameterPolicies, this);
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.Server.Kestrel.Core.Tests (9)
AsciiDecoding.cs (5)
18var byteRange = Enumerable.Range(1, 127).Select(x => (byte)x); 62var byteRange = Enumerable.Range(1, length).Select(x => (byte)x).ToArray(); 73var byteRange = Enumerable.Range(0, 16384 + 64).Select(x => (byte)((x & 0x7f) | 0x01)).ToArray(); 93var byteRange = Enumerable.Range(0, 4096).Select(x => (byte)((x & 0x7f) | 0x01)).ToArray(); 116var byteRange = Enumerable.Range(1, 127).Select(x => (byte)x);
BufferWriterTests.cs (1)
137IEnumerable<byte> source = Enumerable.Range(0, memory.Length).Select(i => (byte)i);
Http1\Http1ConnectionTests.cs (1)
1105return string.Join("", Enumerable
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (1)
50private static readonly string _literalHeaderNameString = string.Concat(Enumerable.Range(0, 4100).Select(c => (char)('a' + (c % 26))));
UTF8Decoding.cs (1)
36var byteRange = Enumerable.Range(1, length).Select(x => (byte)x).ToArray();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (6)
InMemoryTransportBenchmark.cs (2)
35string.Concat(Enumerable.Repeat(_plaintextExpectedResponse, RequestParsingData.Pipelining)); 77if (!Enumerable.SequenceEqual(expectedResponseLines, responseLines))
NamedPipesTransportBenchmark.cs (1)
79if (!Enumerable.SequenceEqual(expectedResponseLines, responseLines))
RequestParsingData.cs (3)
66public static readonly byte[] PlaintextTechEmpowerPipelinedRequests = Encoding.ASCII.GetBytes(string.Concat(Enumerable.Repeat(_plaintextTechEmpowerRequest, Pipelining))); 73public static readonly byte[] LiveaspnetPipelinedRequests = Encoding.ASCII.GetBytes(string.Concat(Enumerable.Repeat(_liveaspnetRequest, Pipelining))); 76public static readonly byte[] UnicodePipelinedRequests = Encoding.ASCII.GetBytes(string.Concat(Enumerable.Repeat(_unicodeRequest, Pipelining)));
Microsoft.AspNetCore.Session (1)
NoOpSessionStore.cs (1)
26public IEnumerator<KeyValuePair<EncodedKey, byte[]>> GetEnumerator() => Enumerable.Empty<KeyValuePair<EncodedKey, byte[]>>().GetEnumerator();
Microsoft.AspNetCore.Shared.Tests (4)
runtime\Http2\HPackDecoderTest.cs (1)
50private static readonly string _literalHeaderNameString = string.Concat(Enumerable.Range(0, 4100).Select(c => (char)('a' + (c % 26))));
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.SignalR.Common.Tests (14)
Internal\Formatters\BinaryMessageFormatterTests.cs (1)
152Enumerable.Range(0, size).Select(n => (byte)(n & 0xff)).ToArray();
Internal\Protocol\CustomObject.cs (1)
42System.Linq.Enumerable.SequenceEqual(ByteArrProp, right.ByteArrProp);
Internal\Protocol\MemoryBufferWriterTests.cs (12)
82var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 101var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 165var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 181var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 199var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 215var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 232var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 251var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 269var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 289var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 316var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray(); 336var input = Enumerable.Range(0, inputSize).Select(i => (byte)i).ToArray();
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubReflectionHelper.cs (1)
25return Enumerable.Empty<MethodInfo>();
Microsoft.AspNetCore.WebUtilities.Tests (18)
FileBufferingReadStreamTests.cs (7)
467var data = Enumerable.Range(0, bufferSize * mostExpectedWrites).Select(b => (byte)b).ToArray(); 491var data = Enumerable.Range(0, bufferSize * mostExpectedWrites).Select(b => (byte)b).Reverse().ToArray(); 512var data = Enumerable.Range(0, 1024).Select(b => (byte)b).ToArray(); 529var data = Enumerable.Range(0, 1024).Select(b => (byte)b).ToArray(); 547var data = Enumerable.Range(0, 1024).Select(b => (byte)b).ToArray(); 566var data = Enumerable.Range(0, 1024).Select(b => (byte)b).ToArray(); 586var data = Enumerable.Range(0, 1024).Select(b => (byte)b).ToArray();
FileBufferingWriteStreamTests.cs (1)
356var input = Enumerable.Repeat((byte)0xca, 30).ToArray();
PagedByteBufferTest.cs (10)
43Assert.Equal(Enumerable.Concat(input1, input2).ToArray(), ReadBufferedContent(buffer)); 66var input1 = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize - 1).ToArray(); 77Assert.Equal(Enumerable.Concat(input1, input2).ToArray(), ReadBufferedContent(buffer)); 84var input = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize + 10).ToArray(); 100var input = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize * 3 + 10).ToArray(); 112var newInput = Enumerable.Repeat((byte)0xcb, PagedByteBuffer.PageSize * 2 + 13).ToArray(); 125var input = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize * 3 + 10).ToArray(); 137var newInput = Enumerable.Repeat((byte)0xcb, PagedByteBuffer.PageSize * 2 + 13).ToArray(); 149var input = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize * 3 + 10).ToArray(); 221var input = Enumerable.Repeat((byte)0xba, PagedByteBuffer.PageSize * 3 + 10).ToArray();
Microsoft.Build (21)
BackEnd\BuildManager\BuildManager.cs (1)
677return (loggers ?? Enumerable.Empty<ILogger>()).Concat(new[] { logger });
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
104properties = Enumerable.Empty<DictionaryEntry>(); 115items = projectItems?.GetCopyOnReadEnumerable(item => new DictionaryEntry(item.ItemType, new TaskItem(item))) ?? Enumerable.Empty<DictionaryEntry>();
Definition\Project.cs (2)
2631IEnumerable<string> excludeFragmentStrings = Enumerable.Empty<string>(); 2642IEnumerable<string> removeFragmentStrings = Enumerable.Empty<string>();
Definition\ProjectItemDefinition.cs (1)
97public IEnumerable<ProjectMetadata> Metadata => Link != null ? Link.Metadata : _metadata ?? Enumerable.Empty<ProjectMetadata>();
Definition\ToolsetLocalReader.cs (2)
49return Enumerable.Empty<ToolsetPropertyDefinition>(); 59return Enumerable.Empty<string>();
Evaluation\EvaluatorMetadataTable.cs (1)
47internal IEnumerable<EvaluatorMetadata> Entries => _metadata?.Values ?? Enumerable.Empty<EvaluatorMetadata>();
Evaluation\ItemSpec.cs (1)
490return Enumerable.Repeat(EscapingUtilities.UnescapeAll(TextFragment), 1);
FileMatcher.cs (1)
1045return Enumerable.Empty<string>();
FileSystem\DirectoryCacheFileSystemWrapper.cs (3)
98: Enumerable.Empty<string>(); 101: Enumerable.Empty<string>(); 103return Enumerable.Concat(directories, files);
Instance\ProjectItemInstance.cs (2)
1038return Enumerable.Empty<KeyValuePair<string, string>>(); 1740Enumerable.Range(0, count).Select(_ =>
Instance\TaskRegistry.cs (1)
670return Enumerable.Empty<RegisteredTaskRecord>();
LogMessagePacketBase.cs (2)
1459return Enumerable.Empty<DictionaryEntry>(); 1481return Enumerable.Empty<DictionaryEntry>();
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
TaskParameter.cs (1)
1024return Enumerable.Empty<KeyValuePair<string, string>>();
Microsoft.Build.Engine.UnitTests (19)
BackEnd\LoggingService_Tests.cs (2)
978BuildEventContext projectStarted = loggingService.LogProjectStarted(buildEventContext, 0, buildEventContext.ProjectInstanceId, BuildEventContext.Invalid, "projectFile", "Build", Enumerable.Empty<DictionaryEntry>(), Enumerable.Empty<DictionaryEntry>());
BackEnd\NodePackets_Tests.cs (1)
178new TaskItemData("ItemSpec2", Enumerable.Range(1, 3).ToDictionary(i => i.ToString(), i => i.ToString() + "value"))
BackEnd\SdkResolverService_Tests.cs (4)
96Enumerable.Empty<string>())) 325Enumerable.Empty<string>())); 408Enumerable.Empty<string>(), 576Enumerable.Empty<string>()));
BuildEventArgsSerialization_Tests.cs (2)
651new TaskItemData("ItemSpec2", Enumerable.Range(1,3).ToDictionary(i => i.ToString(), i => i.ToString() + "value")) 1040binaryWriter.Write(Enumerable.Repeat(byte.MaxValue, eventSize).ToArray());
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>();
ProjectCache\ProjectCacheTests.cs (4)
663var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount()).ToArray(); 1451var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1514var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1578var projectPaths = Enumerable.Range(0, NativeMethodsShared.GetLogicalCoreCount())
Microsoft.Build.Framework (1)
ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
Microsoft.Build.Tasks.Core (11)
AssemblyDependency\InstalledAssemblies.cs (1)
143return Enumerable.Empty<AssemblyEntry>();
AssemblyDependency\ReferenceTable.cs (1)
49private IEnumerable<DependentAssembly> _remappedAssemblies = Enumerable.Empty<DependentAssembly>();
FileMatcher.cs (1)
1045return Enumerable.Empty<string>();
GenerateResource.cs (2)
1708var inputs = (this.References ?? Enumerable.Empty<ITaskItem>()).Concat(this.AdditionalInputs ?? Enumerable.Empty<ITaskItem>());
GetSDKReferenceFiles.cs (2)
1171return Enumerable.Empty<string>(); 1185return Enumerable.Empty<string>();
LockCheck.cs (2)
332return Enumerable.Empty<ProcessInfo>(); 361return Enumerable.Empty<ProcessInfo>();
NativeMethods.cs (1)
1411Enumerable.Range(0, 16)
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
Microsoft.Build.Tasks.UnitTests (4)
Hash_Tests.cs (1)
94Enumerable.Range(0, maxInputSize)
ResourceManagement_Tests.cs (1)
134<Reference Include=""{typeof(Enumerable).Assembly.Location}"" />
RoslynCodeTaskFactory_Tests.cs (2)
161<Reference Include=""{typeof(Enumerable).Assembly.Location}"" /> 187<Reference Include=""{typeof(Enumerable).Assembly.Location}"" />
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (2)
2177return Enumerable.Empty<TResult>(); 2183return Enumerable.Empty<TResult>();
Microsoft.Build.Utilities.Core (3)
FileMatcher.cs (1)
1045return Enumerable.Empty<string>();
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
TaskItem.cs (1)
493return Enumerable.Empty<KeyValuePair<string, string>>();
Microsoft.Build.Utilities.UnitTests (1)
ToolLocationHelper_Tests.cs (1)
51string[] returnValue = ToolLocationHelper.GetApiContractReferences(Enumerable.Empty<ApiContract>(), string.Empty);
Microsoft.Cci.Extensions (8)
Extensions\FakeCustomAttribute.cs (2)
30return Enumerable.Empty<IMetadataExpression>(); 46return Enumerable.Empty<IMetadataNamedArgument>();
Filters\BaselineDifferenceFilter.cs (1)
72return Enumerable.Empty<string>();
HostEnvironment.cs (2)
613paths = Enumerable.Concat(new List<string>() { coreAssemblyFile }, paths.Where(ai => !StringComparer.OrdinalIgnoreCase.Equals(ai, coreAssemblyFile))); 675identities = Enumerable.Concat(new List<AssemblyIdentity>() { coreIdentity }, identities.Where(ai => ai != coreIdentity));
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.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 (5)
Msi\MsiUtils.wix.cs (1)
129return Enumerable.Empty<RelatedProduct>();
Msi\WorkloadPackGroupMsi.wix.cs (1)
95componentGroupRefElement.ReplaceWith(Enumerable.Range(1, _package.Packs.Count).Select(n => new XElement(ns + "ComponentGroupRef", new XAttribute("Id", "CG_PackageContents" + n))));
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.SwaggerGenerator.CodeGenerator (3)
HelperFactory.cs (3)
214typeof(Enumerable).GetMethod("Skip").MakeGenericMethod(member); 217typeof(Enumerable).GetMethod("ToArray").MakeGenericMethod(member); 220typeof(Enumerable).GetMethods()
Microsoft.DotNet.VersionTools (6)
BuildManifest\Model\ArtifactSet.cs (1)
23public IEnumerable<XElement> ToXml() => Enumerable.Concat(
BuildManifest\Model\SigningInformationModel.cs (1)
37Enumerable.Concat(
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 (10)
AsyncCollectionAssertTests.cs (4)
605 var enumerator = new SpyEnumerator<int>(Enumerable.Empty<int>().ToAsyncEnumerable()); 857 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1007 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1071 var enumerator = new SpyEnumerator<int>(Enumerable.Range(0, 1).ToAsyncEnumerable());
CollectionAssertsTests.cs (6)
658 var enumerator = new SpyEnumerator<int>(Enumerable.Empty<int>()); 892 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 916 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1072 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1193 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1609 var enumerator = new SpyEnumerator<int>(Enumerable.Range(0, 1));
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 (12)
CompilationOptions.cs (1)
37defines: Enumerable.Empty<string?>(),
DependencyContextExtensions.cs (4)
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.Localization (1)
ResourceManagerStringLocalizer.cs (1)
143foreach (var name in resourceNames ?? Enumerable.Empty<string>())
Microsoft.Interop.SourceGeneration (1)
Marshalling\GeneratorDiagnostic.cs (1)
59DiagnosticProperties.Add(WellKnownDiagnosticTags.Unnecessary, $"[{string.Join(",", Enumerable.Range(0, UnnecessaryDataLocations.Length))}]"),
Microsoft.Net.Http.Headers.Tests (1)
ContentDispositionHeaderValueTest.cs (1)
236foreach (byte b in Enumerable.Range(0, 128))
Microsoft.NET.StringTools.net35.UnitTests (1)
WeakStringCache_Tests.cs (1)
89string strPart2 = string.Concat(Enumerable.Repeat("100570862200", i + 2));
Microsoft.NET.StringTools.UnitTests (1)
WeakStringCache_Tests.cs (1)
89string strPart2 = string.Concat(Enumerable.Repeat("100570862200", i + 2));
Microsoft.VisualBasic.Core (10)
Microsoft\VisualBasic\CompilerServices\Symbols.vb (4)
970result = Enumerable.ToArray(classConstraint.GetMember(memberName, s_defaultLookupFlags)) 975result = Enumerable.ToArray(_type.GetMember(memberName, s_defaultLookupFlags)) 1029Dim attributes As Object() = Enumerable.ToArray(current.GetCustomAttributes(GetType(DefaultMemberAttribute), False)) 1040Dim result As MemberInfo() = Enumerable.ToArray(current.GetMember(potentialDefaultMemberName, s_defaultLookupFlags))
Microsoft\VisualBasic\CompilerServices\Utils.vb (6)
189Enumerable.All(Enumerable.Zip(pis1, 209Enumerable.All(Enumerable.Zip(pis1, 300Enumerable.All(Enumerable.Zip(args1,
MonoAOTCompiler (1)
MonoAOTCompiler.cs (1)
1124foreach (var profiler in profilers ?? Enumerable.Empty<string>())
MSBuild (2)
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
TaskParameter.cs (1)
1024return Enumerable.Empty<KeyValuePair<string, string>>();
MSBuildTaskHost (1)
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
netstandard (1)
netstandard.cs (1)
981[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Enumerable))]
ProjectCachePlugin (1)
AssemblyMockCache.cs (1)
29foreach (var ep in context.GraphEntryPoints ?? Enumerable.Empty<ProjectGraphEntryPoint>())
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
915var headerStringValues = new StringValues(Enumerable.Repeat(headerValue, headerCount).ToArray());
StatusCodePagesSample (1)
Startup.cs (1)
88var space = string.Concat(Enumerable.Repeat("&nbsp;", 12));
System.Collections.Immutable (19)
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\ImmutableExtensions.Minimal.cs (1)
142/// This is more efficient than the <see cref="System.Linq.Enumerable.ToArray{TSource}(IEnumerable{TSource})"/> extension method
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
582Enumerable.Empty<T>().GetEnumerator() :
System\Collections\Immutable\ImmutableList_1.cs (1)
907Enumerable.Empty<T>().GetEnumerator() :
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
964return root.AddRange(Linq.Enumerable.Select(this, converter));
System\Collections\Immutable\ImmutableQueue_1.cs (1)
249Enumerable.Empty<T>().GetEnumerator() :
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
707Enumerable.Empty<KeyValuePair<TKey, TValue>>().GetEnumerator() :
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (2)
176get { return Linq.Enumerable.Select(this, p => p.Key); } 184get { return Linq.Enumerable.Select(this, p => p.Value); }
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
972Enumerable.Empty<T>().GetEnumerator() :
System\Collections\Immutable\ImmutableStack_1.cs (1)
213Enumerable.Empty<T>().GetEnumerator() :
System\Linq\ImmutableArrayExtensions.cs (7)
60return Enumerable.SelectMany(immutableArray, collectionSelector!, resultSelector!); 74Enumerable.Empty<TResult>() : 343return Enumerable.Empty<T>().First(); 358: Enumerable.First(immutableArray.array!); 401: Enumerable.Last(immutableArray.array!); 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.Composition.Runtime (1)
System\Composition\Hosting\Core\CompositionContract.cs (1)
204if (secondEnumerable == null || !Enumerable.SequenceEqual(firstEnumerable.Cast<object>(), secondEnumerable.Cast<object>()))
System.Composition.TypedParts (1)
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
236if (_appliedArguments.Any(args => Enumerable.SequenceEqual(args, typeArguments)))
System.Core (1)
System.Core.cs (1)
119[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Enumerable))]
System.Data.Common (13)
System\Data\EnumerableRowCollectionExtensions.cs (11)
22EnumerableRowCollection<TRow> edt = new EnumerableRowCollection<TRow>(source, Enumerable.Where(source, predicate), selector: null); 32IEnumerable<TRow> ie = Enumerable.OrderBy(source, keySelector); 44IEnumerable<TRow> ie = Enumerable.OrderBy(source, keySelector, comparer); 55IEnumerable<TRow> ie = Enumerable.OrderByDescending(source, keySelector); 67IEnumerable<TRow> ie = Enumerable.OrderByDescending(source, keySelector, comparer); 79IEnumerable<TRow> ie = Enumerable.ThenBy((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector); 91IEnumerable<TRow> ie = Enumerable.ThenBy((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector, comparer); 103IEnumerable<TRow> ie = Enumerable.ThenByDescending((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector); 115IEnumerable<TRow> ie = Enumerable.ThenByDescending((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector, comparer); 131IEnumerable<S> typedEnumerable = Enumerable.Select(source, selector); 155IEnumerable<TResult> typedEnumerable = Enumerable.Cast<TResult>(source);
System\Data\TypeLimiter.cs (2)
111: Enumerable.Empty<Type>(); 122: Enumerable.Empty<Type>();
System.Linq (4)
System\Linq\Lookup.cs (3)
134public IEnumerable<TElement> this[TKey key] => GetGrouping(key, create: false) ?? Enumerable.Empty<TElement>(); 160Span<TResult> span = Enumerable.SetCountAndGetSpan(list, _count); 309public IEnumerator<IGrouping<TKey, TElement>> GetEnumerator() => Enumerable.Empty<IGrouping<TKey, TElement>>().GetEnumerator();
System\Linq\SegmentedArrayBuilder.cs (1)
141if (Enumerable.TryGetSpan(source, out ReadOnlySpan<T> sourceSpan))
System.Linq.Parallel (3)
System\Linq\Parallel\Utils\Lookup.cs (2)
75return Enumerable.Empty<TElement>(); 85return Enumerable.Empty<TElement>();
System\Linq\ParallelEnumerable.cs (1)
54/// <see cref="System.Linq.Enumerable"/>.
System.Linq.Queryable (168)
System\Linq\EnumerableRewriter.cs (1)
220s_seqMethods ??= GetEnumerableStaticMethods(typeof(Enumerable)).ToLookup(m => m.Name);
System\Linq\Queryable.cs (167)
45[DynamicDependency("Where`1", typeof(Enumerable))] 58[DynamicDependency("Where`1", typeof(Enumerable))] 71[DynamicDependency("OfType`1", typeof(Enumerable))] 83[DynamicDependency("Cast`1", typeof(Enumerable))] 95[DynamicDependency("Select`2", typeof(Enumerable))] 108[DynamicDependency("Select`2", typeof(Enumerable))] 121[DynamicDependency("SelectMany`2", typeof(Enumerable))] 134[DynamicDependency("SelectMany`2", typeof(Enumerable))] 147[DynamicDependency("SelectMany`3", typeof(Enumerable))] 161[DynamicDependency("SelectMany`3", typeof(Enumerable))] 181[DynamicDependency("Join`4", typeof(Enumerable))] 197[DynamicDependency("Join`4", typeof(Enumerable))] 213[DynamicDependency("GroupJoin`4", typeof(Enumerable))] 229[DynamicDependency("GroupJoin`4", typeof(Enumerable))] 258/// calling <see cref="Enumerable.Order{T}(IEnumerable{T})"/> itself as a constructed generic method. 265/// that represents calling <see cref="Enumerable.Order{T}(IEnumerable{T})"/> 269[DynamicDependency("Order`1", typeof(Enumerable))] 295/// calling <see cref="Enumerable.Order{T}(IEnumerable{T})"/> itself as a constructed generic method. 302/// that represents calling <see cref="Enumerable.Order{T}(IEnumerable{T})"/> 306[DynamicDependency("Order`1", typeof(Enumerable))] 318[DynamicDependency("OrderBy`2", typeof(Enumerable))] 331[DynamicDependency("OrderBy`2", typeof(Enumerable))] 357/// calling <see cref="Enumerable.Order{T}(IEnumerable{T})"/> itself as a constructed generic method. 364/// that represents calling <see cref="Enumerable.Order{T}(IEnumerable{T})"/> 368[DynamicDependency("OrderDescending`1", typeof(Enumerable))] 394/// calling <see cref="Enumerable.Order{T}(IEnumerable{T})"/> itself as a constructed generic method. 401/// that represents calling <see cref="Enumerable.Order{T}(IEnumerable{T})"/> 405[DynamicDependency("OrderDescending`1", typeof(Enumerable))] 417[DynamicDependency("OrderByDescending`2", typeof(Enumerable))] 430[DynamicDependency("OrderByDescending`2", typeof(Enumerable))] 443[DynamicDependency("ThenBy`2", typeof(Enumerable))] 456[DynamicDependency("ThenBy`2", typeof(Enumerable))] 469[DynamicDependency("ThenByDescending`2", typeof(Enumerable))] 482[DynamicDependency("ThenByDescending`2", typeof(Enumerable))] 495[DynamicDependency("Take`1", typeof(Enumerable))] 513[DynamicDependency("Take`1", typeof(Enumerable))] 525[DynamicDependency("TakeWhile`1", typeof(Enumerable))] 538[DynamicDependency("TakeWhile`1", typeof(Enumerable))] 551[DynamicDependency("Skip`1", typeof(Enumerable))] 563[DynamicDependency("SkipWhile`1", typeof(Enumerable))] 576[DynamicDependency("SkipWhile`1", typeof(Enumerable))] 589[DynamicDependency("GroupBy`2", typeof(Enumerable))] 602[DynamicDependency("GroupBy`3", typeof(Enumerable))] 616[DynamicDependency("GroupBy`2", typeof(Enumerable))] 629[DynamicDependency("GroupBy`3", typeof(Enumerable))] 643[DynamicDependency("GroupBy`4", typeof(Enumerable))] 658[DynamicDependency("GroupBy`3", typeof(Enumerable))] 672[DynamicDependency("GroupBy`3", typeof(Enumerable))] 686[DynamicDependency("GroupBy`4", typeof(Enumerable))] 701[DynamicDependency("Distinct`1", typeof(Enumerable))] 713[DynamicDependency("Distinct`1", typeof(Enumerable))] 732[DynamicDependency("DistinctBy`2", typeof(Enumerable))] 753[DynamicDependency("DistinctBy`2", typeof(Enumerable))] 777[DynamicDependency("Chunk`1", typeof(Enumerable))] 789[DynamicDependency("Concat`1", typeof(Enumerable))] 802[DynamicDependency("Zip`2", typeof(Enumerable))] 815[DynamicDependency("Zip`3", typeof(Enumerable))] 839[DynamicDependency("Zip`3", typeof(Enumerable))] 853[DynamicDependency("Union`1", typeof(Enumerable))] 866[DynamicDependency("Union`1", typeof(Enumerable))] 889[DynamicDependency("UnionBy`2", typeof(Enumerable))] 912[DynamicDependency("UnionBy`2", typeof(Enumerable))] 933[DynamicDependency("Index`1", typeof(Enumerable))] 945[DynamicDependency("Intersect`1", typeof(Enumerable))] 958[DynamicDependency("Intersect`1", typeof(Enumerable))] 981[DynamicDependency("IntersectBy`2", typeof(Enumerable))] 1006[DynamicDependency("IntersectBy`2", typeof(Enumerable))] 1023[DynamicDependency("Except`1", typeof(Enumerable))] 1036[DynamicDependency("Except`1", typeof(Enumerable))] 1060[DynamicDependency("ExceptBy`2", typeof(Enumerable))] 1086[DynamicDependency("ExceptBy`2", typeof(Enumerable))] 1103[DynamicDependency("First`1", typeof(Enumerable))] 1115[DynamicDependency("First`1", typeof(Enumerable))] 1128[DynamicDependency("FirstOrDefault`1", typeof(Enumerable))] 1146[DynamicDependency("FirstOrDefault`1", typeof(Enumerable))] 1158[DynamicDependency("FirstOrDefault`1", typeof(Enumerable))] 1178[DynamicDependency("FirstOrDefault`1", typeof(Enumerable))] 1191[DynamicDependency("Last`1", typeof(Enumerable))] 1203[DynamicDependency("Last`1", typeof(Enumerable))] 1216[DynamicDependency("LastOrDefault`1", typeof(Enumerable))] 1234[DynamicDependency("LastOrDefault`1", typeof(Enumerable))] 1246[DynamicDependency("LastOrDefault`1", typeof(Enumerable))] 1266[DynamicDependency("LastOrDefault`1", typeof(Enumerable))] 1280[DynamicDependency("Single`1", typeof(Enumerable))] 1292[DynamicDependency("Single`1", typeof(Enumerable))] 1305[DynamicDependency("SingleOrDefault`1", typeof(Enumerable))] 1324[DynamicDependency("SingleOrDefault`1", typeof(Enumerable))] 1336[DynamicDependency("SingleOrDefault`1", typeof(Enumerable))] 1357[DynamicDependency("SingleOrDefault`1", typeof(Enumerable))] 1370[DynamicDependency("ElementAt`1", typeof(Enumerable))] 1392[DynamicDependency("ElementAt`1", typeof(Enumerable))] 1407[DynamicDependency("ElementAtOrDefault`1", typeof(Enumerable))] 1425[DynamicDependency("ElementAtOrDefault`1", typeof(Enumerable))] 1437[DynamicDependency("DefaultIfEmpty`1", typeof(Enumerable))] 1449[DynamicDependency("DefaultIfEmpty`1", typeof(Enumerable))] 1461[DynamicDependency("Contains`1", typeof(Enumerable))] 1473[DynamicDependency("Contains`1", typeof(Enumerable))] 1485[DynamicDependency("Reverse`1", typeof(Enumerable))] 1497[DynamicDependency("SequenceEqual`1", typeof(Enumerable))] 1510[DynamicDependency("SequenceEqual`1", typeof(Enumerable))] 1525[DynamicDependency("Any`1", typeof(Enumerable))] 1537[DynamicDependency("Any`1", typeof(Enumerable))] 1550[DynamicDependency("All`1", typeof(Enumerable))] 1563[DynamicDependency("Count`1", typeof(Enumerable))] 1575[DynamicDependency("Count`1", typeof(Enumerable))] 1596[DynamicDependency("CountBy`2", typeof(Enumerable))] 1609[DynamicDependency("LongCount`1", typeof(Enumerable))] 1621[DynamicDependency("LongCount`1", typeof(Enumerable))] 1634[DynamicDependency("Min`1", typeof(Enumerable))] 1653[DynamicDependency("Min`1", typeof(Enumerable))] 1666[DynamicDependency("Min`2", typeof(Enumerable))] 1687[DynamicDependency("MinBy`2", typeof(Enumerable))] 1710[DynamicDependency("MinBy`2", typeof(Enumerable))] 1725[DynamicDependency("Max`1", typeof(Enumerable))] 1743[DynamicDependency("Max`1", typeof(Enumerable))] 1756[DynamicDependency("Max`2", typeof(Enumerable))] 1777[DynamicDependency("MaxBy`2", typeof(Enumerable))] 1800[DynamicDependency("MaxBy`2", typeof(Enumerable))] 1815[DynamicDependency("Sum", typeof(Enumerable))] 1827[DynamicDependency("Sum", typeof(Enumerable))] 1839[DynamicDependency("Sum", typeof(Enumerable))] 1851[DynamicDependency("Sum", typeof(Enumerable))] 1863[DynamicDependency("Sum", typeof(Enumerable))] 1875[DynamicDependency("Sum", typeof(Enumerable))] 1887[DynamicDependency("Sum", typeof(Enumerable))] 1899[DynamicDependency("Sum", typeof(Enumerable))] 1911[DynamicDependency("Sum", typeof(Enumerable))] 1923[DynamicDependency("Sum", typeof(Enumerable))] 1935[DynamicDependency("Sum`1", typeof(Enumerable))] 1948[DynamicDependency("Sum`1", typeof(Enumerable))] 1961[DynamicDependency("Sum`1", typeof(Enumerable))] 1974[DynamicDependency("Sum`1", typeof(Enumerable))] 1987[DynamicDependency("Sum`1", typeof(Enumerable))] 2000[DynamicDependency("Sum`1", typeof(Enumerable))] 2013[DynamicDependency("Sum`1", typeof(Enumerable))] 2026[DynamicDependency("Sum`1", typeof(Enumerable))] 2039[DynamicDependency("Sum`1", typeof(Enumerable))] 2052[DynamicDependency("Sum`1", typeof(Enumerable))] 2065[DynamicDependency("Average", typeof(Enumerable))] 2077[DynamicDependency("Average", typeof(Enumerable))] 2089[DynamicDependency("Average", typeof(Enumerable))] 2101[DynamicDependency("Average", typeof(Enumerable))] 2113[DynamicDependency("Average", typeof(Enumerable))] 2125[DynamicDependency("Average", typeof(Enumerable))] 2137[DynamicDependency("Average", typeof(Enumerable))] 2149[DynamicDependency("Average", typeof(Enumerable))] 2161[DynamicDependency("Average", typeof(Enumerable))] 2173[DynamicDependency("Average", typeof(Enumerable))] 2185[DynamicDependency("Average`1", typeof(Enumerable))] 2198[DynamicDependency("Average`1", typeof(Enumerable))] 2211[DynamicDependency("Average`1", typeof(Enumerable))] 2224[DynamicDependency("Average`1", typeof(Enumerable))] 2237[DynamicDependency("Average`1", typeof(Enumerable))] 2250[DynamicDependency("Average`1", typeof(Enumerable))] 2263[DynamicDependency("Average`1", typeof(Enumerable))] 2276[DynamicDependency("Average`1", typeof(Enumerable))] 2289[DynamicDependency("Average`1", typeof(Enumerable))] 2302[DynamicDependency("Average`1", typeof(Enumerable))] 2315[DynamicDependency("Aggregate`1", typeof(Enumerable))] 2328[DynamicDependency("Aggregate`2", typeof(Enumerable))] 2341[DynamicDependency("Aggregate`3", typeof(Enumerable))] 2355[DynamicDependency("AggregateBy`3", typeof(Enumerable))] 2369[DynamicDependency("AggregateBy`3", typeof(Enumerable))] 2384[DynamicDependency("SkipLast`1", typeof(Enumerable))] 2397[DynamicDependency("TakeLast`1", typeof(Enumerable))] 2409[DynamicDependency("Append`1", typeof(Enumerable))] 2421[DynamicDependency("Prepend`1", typeof(Enumerable))]
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
4830string.Concat(from i in Enumerable.Range(0, count)
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\ChainedPartitionedRateLimiter.cs (1)
189return Enumerable.Empty<string>();
TestExclusionListTasks (2)
PatchExclusionListInApks.cs (2)
39(ExcludedTests ?? Enumerable.Empty<ITaskItem>()).Select(t => t.ItemSpec)); 40foreach (ITaskItem apk in ApkPaths ?? Enumerable.Empty<ITaskItem>())
Wasm.Performance.TestApp (1)
Person.cs (1)
28Subordinates = Enumerable.Range(0, thisDepth < totalDepth ? numDescendantsPerNode : 0)
WasmAppBuilder (2)
ManagedToNativeGenerator.cs (1)
85IEnumerable<string> cookies = Enumerable.Concat(
WasmAppBuilder.cs (1)
356foreach (ITaskItem extra in ExtraConfig ?? Enumerable.Empty<ITaskItem>())
WinShimmer (1)
Program.cs (1)
47MetadataReference.CreateFromFile(typeof(Enumerable).Assembly.Location),
XmlFormattersWebSite (2)
Controllers\IQueryableController.cs (2)
13return Enumerable.Range(1, 2).Select(i => i * 10).AsQueryable(); 18return Enumerable.Range(1, 2).Select(i => "value" + i).AsQueryable();
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>();