2397 references to Enumerable
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\MetricsTests.cs (1)
623Assert.True(Enumerable.SequenceEqual(MemoryMarshal.ToEnumerable(key), scope.Attributes), "Key and attributes don't match.");
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>();
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
BoundTreeGenerator (3)
BoundNodeClassWriter.cs (3)
697return Enumerable.Empty<Field>(); 704return Enumerable.Empty<Field>(); 745return Enumerable.Empty<Field>();
BuildValidator (1)
Program.cs (1)
230return Enumerable.Concat(exePaths, dllPaths);
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
48MetadataReference.CreateFromFile(typeof(Enumerable).Assembly.Location),
DaprServiceB (1)
Program.cs (1)
26var forecast = Enumerable.Range(1, 5).Select(index =>
dotnet-svcutil-lib (2)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (1)
485if (Enumerable.Contains(s_knownSerializableTypeNames, type.FullName))
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
40return Enumerable.ToArray(type.GetTypeInfo().ImplementedInterfaces);
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)
307var expectedFullResponse = string.Join("", Enumerable.Repeat(response, requestCount + 1)); 438var expectedFullResponse = string.Join("", Enumerable.Repeat(response, requestCount + 1)); 613var expectedFullResponse = string.Join("", Enumerable.Repeat(response, requestCount + 1));
ConnectionLimitTests.cs (1)
145var actions = Enumerable.Repeat(AssertCounter, i + 1).ToArray();
RequestHeaderLimitsTests.cs (1)
156.Concat(Enumerable
RequestTests.cs (2)
1426Enumerable.Repeat("GET / HTTP/1.1\r\nHost:\r\n", loopCount) 1446Enumerable.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)
233var randomBytes = Enumerable.Range(1, DataLength).Select(i => (byte)((i % 10) + 48)).ToArray();
IOperationGenerator (3)
IOperationClassWriter.cs (3)
224return Enumerable.Empty<string>(); 230return Enumerable.Empty<string>(); 297WriteComments(prop.Comments, operationKinds: Enumerable.Empty<string>(), writeReservedRemark: false);
Keycloak.ApiService (1)
Program.cs (1)
30var forecast = Enumerable.Range(1, 5).Select(index =>
KeyManagementSimulator (1)
Program.cs (1)
107var startOffsetsMs = Enumerable.Range(0, instanceCount).ToArray();
Microsoft.AspNetCore.App.Analyzers (3)
Mvc\DetectOverriddenAuthorizeAttribute.cs (1)
199foreach (var extraAttribute in localAuthorizeAttributeOverflow ?? Enumerable.Empty<AttributeData>())
RouteEmbeddedLanguage\Infrastructure\SyntaxNodeExtensions.cs (1)
130foreach (var trivia in Enumerable.Reverse(triviaList))
RouteHandlers\DetectMisplacedLambdaAttribute.cs (1)
73foreach (var op in Enumerable.Reverse(blockOperation.ChildOperations))
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)
239services?.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 (2)
Circuits\CircuitIdFactoryTest.cs (1)
31var secrets = Enumerable.Range(0, 100).Select(i => factory.CreateCircuitId()).Select(s => s.Secret).ToArray();
Circuits\ServerComponentDeserializerTest.cs (1)
159var markers = SerializeMarkers(Enumerable.Reverse(CreateMarkers(typeof(TestComponent), typeof(TestComponent))).ToArray());
Microsoft.AspNetCore.Components.Tests (6)
CascadingParameterTest.cs (1)
845var components = Enumerable.Range(0, numSubscribers).Select(_ => new SimpleSubscriberComponent()).ToArray();
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.Connections.Abstractions (2)
ConnectionBuilder.cs (1)
45foreach (var component in Enumerable.Reverse(_components))
MultiplexedConnectionBuilder.cs (1)
45foreach (var component in Enumerable.Reverse(_components))
Microsoft.AspNetCore.DataProtection (1)
Internal\ContainerUtils.cs (1)
106return Enumerable.Reverse(lines).Any(l => l.EndsWith("name=openrc:/docker", StringComparison.Ordinal));
Microsoft.AspNetCore.Diagnostics (5)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
70foreach (var filter in Enumerable.Reverse(filters))
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 (1)
src\Grpc\JsonTranscoding\src\Shared\Server\MethodOptions.cs (1)
119foreach (var options in Enumerable.Reverse(serviceOptions))
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServerCallContextTests.cs (1)
90MethodOptions.Create(Enumerable.Empty<GrpcServiceOptions>()),
Microsoft.AspNetCore.Hosting (6)
GenericHost\GenericWebHostService.cs (1)
135foreach (var filter in Enumerable.Reverse(StartupFilters))
Internal\StartupLoader.cs (1)
225foreach (var filter in Enumerable.Reverse(filters))
Internal\WebHost.cs (1)
217foreach (var filter in Enumerable.Reverse(startupFilters))
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.InternalTesting (1)
xunit\DockerOnlyAttribute.cs (1)
34return Enumerable.Reverse(lines).Any(l => l.EndsWith("name=openrc:/docker", StringComparison.Ordinal));
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)
633var 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 (27)
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 (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 (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)
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 (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.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
214foreach (var constraint in Enumerable.Reverse(constraints))
Microsoft.AspNetCore.OpenApi.Microbenchmarks (5)
OpenApiSchemaComparerBenchmark.cs (5)
26AllOf = Enumerable.Range(0, ElementCount).Select(_ => GenerateInnerSchema()).ToList(), 27AnyOf = Enumerable.Range(0, ElementCount).Select(_ => GenerateInnerSchema()).ToList(), 40Enum = Enumerable.Range(0, ElementCount).Select(_ => (IOpenApiAny)new OpenApiString("enum")).ToList(), 41OneOf = Enumerable.Range(0, ElementCount).Select(_ => GenerateInnerSchema()).ToList(), 46Properties = Enumerable.Range(0, 10).ToDictionary(i => i.ToString(CultureInfo.InvariantCulture), _ => new OpenApiSchema()),
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 (9)
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>(),
Tree\TreeRouterTest.cs (5)
104foreach (var template in Enumerable.Reverse(routes)) 151foreach (var template in Enumerable.Reverse(routes)) 203foreach (var template in Enumerable.Reverse(routes)) 246foreach (var template in Enumerable.Reverse(routes)) 344foreach (var template in Enumerable.Reverse(routes))
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 (3)
Internal\ConfigSectionClone.cs (1)
18var children = configSection.GetChildren() ?? Enumerable.Empty<IConfigurationSection>();
Internal\KestrelServerImpl.cs (2)
57_transportFactories = Enumerable.Reverse(transportFactories).ToList(); 58_multiplexedTransportFactories = Enumerable.Reverse(multiplexedFactories).ToList();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (9)
AsciiDecoding.cs (5)
18var byteRange = Enumerable.Range(1, 127).Select(x => (byte)x); 61var byteRange = Enumerable.Range(1, length).Select(x => (byte)x).ToArray(); 72var byteRange = Enumerable.Range(0, 16384 + 64).Select(x => (byte)((x & 0x7f) | 0x01)).ToArray(); 92var byteRange = Enumerable.Range(0, 4096).Select(x => (byte)((x & 0x7f) | 0x01)).ToArray(); 115var 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)
1108return 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.WebUtilities.Tests (19)
FileBufferingReadStreamTests.cs (8)
467var data = Enumerable.Range(0, bufferSize * mostExpectedWrites).Select(b => (byte)b).ToArray(); 491var data = Enumerable.Reverse(Enumerable.Range(0, bufferSize * mostExpectedWrites).Select(b => (byte)b)).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 (6)
BackEnd\BuildManager\BuildManager.cs (1)
2309foreach (var cacheResultInner in cacheResult.BuildResult?.ResultsByTarget ?? Enumerable.Empty<KeyValuePair<string, TargetResult>>())
Evaluation\EvaluatorMetadataTable.cs (1)
47internal IEnumerable<EvaluatorMetadata> Entries => _metadata?.Values ?? Enumerable.Empty<EvaluatorMetadata>();
Evaluation\ItemSpec.cs (1)
487return Enumerable.Repeat(EscapingUtilities.UnescapeAll(TextFragment), 1);
FileSystem\DirectoryCacheFileSystemWrapper.cs (1)
103return Enumerable.Concat(directories, files);
Instance\ProjectItemInstance.cs (1)
1790Enumerable.Range(0, count).Select(_ =>
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
Microsoft.Build.BuildCheck.UnitTests (1)
EndToEndTests.cs (1)
953foreach (string supplementalAssetName in supplementalAssetNames ?? Enumerable.Empty<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)
186new TaskItemData("ItemSpec2", Enumerable.Range(1, 3).ToDictionary(i => i.ToString(), i => i.ToString() + "value"))
BackEnd\SdkResolverService_Tests.cs (4)
95Enumerable.Empty<string>())) 357Enumerable.Empty<string>())); 440Enumerable.Empty<string>(), 612Enumerable.Empty<string>()));
BuildEventArgsSerialization_Tests.cs (2)
725new TaskItemData("ItemSpec2", Enumerable.Range(1,3).ToDictionary(i => i.ToString(), i => i.ToString() + "value")) 1103binaryWriter.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(); 1452var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1515var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1579var 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 (2)
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)
2189return Enumerable.Empty<TResult>(); 2195return 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 (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.CodeAnalysis (11)
Compilation\Compilation.cs (1)
1248|| Enumerable.SequenceEqual(addedArray, val, ReferenceEqualityComparer.Instance));
Diagnostic\DiagnosticBag.cs (1)
39/// This exists for short-circuiting purposes. Use <see cref="System.Linq.Enumerable.Any{T}(IEnumerable{T})"/>
DiagnosticAnalyzer\SymbolDeclaredCompilationEvent.cs (1)
53var loc = DeclaringSyntaxReferences.Length != 0 ? " @ " + string.Join(", ", System.Linq.Enumerable.Select(DeclaringSyntaxReferences, r => r.GetLocation().GetLineSpan())) : null;
InternalUtilities\EnumerableExtensions.cs (2)
803/// Unlike <see cref="Enumerable.SingleOrDefault{TSource}(IEnumerable{TSource})"/> doesn't throw if there is more than one element in the sequence. 919public static IEnumerable<T> Reverse<T>(this T[] source) => Enumerable.Reverse(source);
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (5)
69: Enumerable.Last(immutableList); 81: Enumerable.Last(builder); 98return Enumerable.Empty<T>().Last(); 110return Enumerable.Empty<TResult>(); 114return Enumerable.Select(immutableList, selector);
Microsoft.CodeAnalysis.CodeStyle (31)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
143semanticModel.Compilation.GetBestTypeByMetadataName(typeof(Enumerable).FullName!) != null;
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (2)
120.Add(WellKnownDiagnosticTags.Unnecessary, Enumerable.Range(additionalLocations.Length, additionalUnnecessaryLocations.Length)); 191.Add(WellKnownDiagnosticTags.Unnecessary, Enumerable.Range(additionalLocations.Length, additionalUnnecessaryLocations.Length));
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (15)
28nameof(Enumerable.First), 29nameof(Enumerable.Last), 30nameof(Enumerable.Single), 31nameof(Enumerable.Any), 32nameof(Enumerable.Count), 33nameof(Enumerable.SingleOrDefault), 34nameof(Enumerable.FirstOrDefault), 35nameof(Enumerable.LastOrDefault), 39nameof(Enumerable.Average), 40nameof(Enumerable.Sum), 41nameof(Enumerable.Min), 42nameof(Enumerable.Max), 71enumerableType = compilation.GetTypeByMetadataName(typeof(Enumerable)?.FullName!); 76=> TryGetLinqExtensionMethod(enumerableType, nameof(Enumerable.Where), out linqMethod); 79=> TryGetLinqExtensionMethod(enumerableType, nameof(Enumerable.Select), out linqMethod);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (2)
30(nameof(Enumerable.Concat), isLinq: true), 31(nameof(Enumerable.Append), isLinq: true),
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
803/// Unlike <see cref="Enumerable.SingleOrDefault{TSource}(IEnumerable{TSource})"/> doesn't throw if there is more than one element in the sequence. 919public static IEnumerable<T> Reverse<T>(this T[] source) => Enumerable.Reverse(source);
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (5)
69: Enumerable.Last(immutableList); 81: Enumerable.Last(builder); 98return Enumerable.Empty<T>().Last(); 110return Enumerable.Empty<TResult>(); 114return Enumerable.Select(immutableList, selector);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ChildSyntaxListExtensions.cs (2)
21return Enumerable.First(childSyntaxList, predicate); 33return Enumerable.Last(childSyntaxList, predicate);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (1)
183=> $"Interval tree with '{System.Linq.Enumerable.Count(this)}' entries. Use '.ToList()' to visualize contents.";
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (3)
67var enumerableType = semanticModel.Compilation.GetBestTypeByMetadataName(typeof(Enumerable).FullName!); 98nameof(Enumerable.Cast), 108generator.IdentifierName(nameof(Enumerable.Select))),
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 (6)
ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
ImmutableSegmentedListExtensions.cs (5)
69: Enumerable.Last(immutableList); 81: Enumerable.Last(builder); 98return Enumerable.Empty<T>().Last(); 110return Enumerable.Empty<TResult>(); 114return Enumerable.Select(immutableList, selector);
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Invocation.cs (1)
2163return BuildArgumentsForErrorRecovery(analyzedArguments, Enumerable.Empty<ImmutableArray<ParameterSymbol>>());
Binder\Binder_Query.cs (1)
321argsToParams.AddRange(Enumerable.Range(0, n));
Binder\Binder_Statements.cs (1)
158Debug.Assert(System.Linq.Enumerable.Contains(result.Syntax.AncestorsAndSelf(), node), @"Bound statement (or one of its parents)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1559else if (System.Linq.Enumerable.Count(ResultsBuilder, x => x.Result.IsValid) > 1) 1563else if (System.Linq.Enumerable.Any(ResultsBuilder, x => (x.Result.Kind == MemberResolutionKind.TypeInferenceFailed) || (x.Result.Kind == MemberResolutionKind.TypeInferenceExtensionInstanceArgument)))
BoundTree\UnboundLambda.cs (1)
177parameterRefKinds.IsDefault ? Enumerable.Repeat(RefKind.None, parameterTypes.Length).ToImmutableArray() : parameterRefKinds,
Compilation\CSharpCompilation.cs (1)
3246var 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 (6)
src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastDiagnosticAnalyzer.cs (4)
31var enumerableType = context.Compilation.GetTypeByMetadataName(typeof(Enumerable).FullName!); 113Name: IdentifierNameSyntax { Identifier.ValueText: nameof(Enumerable.Where) }, 133Identifier.ValueText: nameof(Enumerable.Cast), 163Identifier.ValueText: nameof(Enumerable.Select),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
227or nameof(Enumerable.ToList))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.SingleLineRewriter.cs (1)
28token = token.WithLeadingTrivia(Enumerable.Empty<SyntaxTrivia>());
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
278var orphanedTrivia = Enumerable.Empty<SyntaxTrivia>();
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (1)
53var ofTypeToken = Identifier(nameof(Enumerable.OfType)).WithTriviaFrom(castOrSelectNameToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
95[.. Enumerable.Repeat<ExpressionSyntax>(OmittedArraySizeExpression(), arrayType.Rank)])); 204? Enumerable.Repeat((TypeSyntax)OmittedTypeArgument(), symbol.TypeArguments.Length)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1745else if (name.Equals(nameof(Enumerable.Select)) || 1746name.Equals(nameof(Enumerable.Where)))
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\AbstractBuiltInCodeStyleDiagnosticAnalyzer\AbstractBuiltInCodeStyleDiagnosticAnalyzerTests.cs (1)
21var ids = Enumerable.Range(10, 20).Select(item => "IDE_" + item);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
GeneratorDriverCacheTests.cs (1)
101private static GeneratorDriver[] GetDrivers(int count) => Enumerable.Range(0, count).Select(i => CSharpGeneratorDriver.Create(Array.Empty<ISourceGenerator>())).ToArray();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenCapturing.cs (2)
325copy.LocalFuncs.AddRange(Enumerable.Repeat<List<string>>(null, depth - copy.LocalFuncs.Count)); 403Enumerable.Range(0, totalLocalFuncs).Select(f => $"Local_{f}()"));
CodeGen\CodeGenDeconstructTests.cs (4)
2396var tuple = String.Join(", ", Enumerable.Range(1, i).Select(n => n.ToString())); 2397var variables = String.Join(", ", Enumerable.Range(1, i).Select(n => $"x{n}")); 2398var output = String.Join(@" + "" "" + ", Enumerable.Range(1, i).Select(n => $"x{n}")); 2399var expected = String.Join(" ", Enumerable.Range(1, i).Select(n => n));
CodeGen\CodeGenInterfaceImplementation.cs (2)
2743var baseMethods = Enumerable.Range(1, 4).Select(i => baseType.GetMember<MethodSymbol>("M" + i)).ToArray(); 2744var interfaceMethods = Enumerable.Range(1, 4).Select(i => interfaceType.GetMember<MethodSymbol>("M" + i)).ToArray();
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (1)
2607string values = string.Join(", ", Enumerable.Range(1, numValues).Select(i => $"({typeName}){i}"));
CodeGen\CodeGenTupleTest.cs (3)
6925ImmutableArray.CreateRange(Enumerable.Range(0, n).Select(_ => annotation)); 23995string filler = string.Join("\r\n", Enumerable.Range(1, 1000).Select(i => $"int y{i};")); 23996string parameters = string.Join(", ", Enumerable.Range(1, 2000).Select(i => $"int x{i}"));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
Emit\EditAndContinue\EditAndContinuePdbTests.cs (2)
186diff1.VerifyPdb(Enumerable.Range(0x06000001, 20), @" 318diff2.VerifyPdb(Enumerable.Range(0x06000001, 20), @"
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (2)
176diff1.VerifyPdb(Enumerable.Range(0x06000001, 0x20), @" 2364diff1.VerifyPdb(Enumerable.Range(1, 20).Select(MetadataTokens.MethodDefinitionHandle), @"
Emit\LocalStateTracing\LocalStateTracingTests.cs (1)
1331var expectedValue = $"<{string.Join("-", Enumerable.Repeat("00", expectedSize))}>";
PDB\PDBTests.cs (2)
430var locals = Enumerable.Range(0, 14_000) 740var verbatim = string.Join("\r\n", Enumerable.Repeat("x", 1000));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\AttributeTests.cs (1)
9868var methods = Enumerable.Range(0, 6).Select(i => type.GetMember<MethodSymbol>("M" + i));
Semantics\PatternMatchingTests.cs (2)
4922var tasks = Enumerable.Range(0, numTasks).Select(t => Task.Run(() => 5017return string.Join(", ", Enumerable.Range(0, r.Next(3)).Select(i => $"{(propNames ? $"P{r.Next(10)}: " : null)}{Pattern(d)}"));
Semantics\PatternMatchingTests3.cs (3)
7269{Enumerable.Range((int)'A', (int)('z' - 'A') + 1).Select(x => (char)x) 7290{Enumerable.Range((int)'A', (int)('z' - 'A') + 1).Select(x => (char)x) 7292{Enumerable.Range(0, 20)
Semantics\RecordTests.cs (1)
14107verifier.VerifyDiagnostics(Enumerable.Repeat(expectedDiagnostic, 21).ToArray());
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
786var deeplyRecursive = string.Join("+", Enumerable.Repeat(""" "a" """, 20_000));
Microsoft.CodeAnalysis.CSharp.Features (18)
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (4)
189var invokedMethodName = !hasForEachChild ? nameof(Enumerable.Select) : nameof(Enumerable.SelectMany); 192if (invokedMethodName == nameof(Enumerable.Select) && 286IdentifierName(nameof(Enumerable.Where))),
ConvertLinq\ConvertForEachToLinqQuery\ToCountConverter.cs (1)
23protected override string MethodName => nameof(Enumerable.Count);
ConvertLinq\ConvertForEachToLinqQuery\ToToListConverter.cs (1)
24protected override string MethodName => nameof(Enumerable.ToList);
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (2)
286case nameof(Enumerable.ToList): 288case nameof(Enumerable.Count):
GenerateType\CSharpGenerateTypeService.cs (1)
478: Enumerable.Repeat<SyntaxNode>(null, state.SimpleName.Arity);
src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastDiagnosticAnalyzer.cs (4)
31var enumerableType = context.Compilation.GetTypeByMetadataName(typeof(Enumerable).FullName!); 113Name: IdentifierNameSyntax { Identifier.ValueText: nameof(Enumerable.Where) }, 133Identifier.ValueText: nameof(Enumerable.Cast), 163Identifier.ValueText: nameof(Enumerable.Select),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
227or nameof(Enumerable.ToList))
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
278var orphanedTrivia = Enumerable.Empty<SyntaxTrivia>();
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (1)
53var ofTypeToken = Identifier(nameof(Enumerable.OfType)).WithTriviaFrom(castOrSelectNameToken);
Structure\Providers\FileScopedNamespaceDeclarationStructureProvider.cs (1)
28var externsAndUsings = Enumerable.Union<SyntaxNode>(fileScopedNamespaceDeclaration.Externs, fileScopedNamespaceDeclaration.Usings).ToImmutableArray();
Structure\Providers\NamespaceDeclarationStructureProvider.cs (1)
38var externsAndUsings = Enumerable.Union<SyntaxNode>(namespaceDeclaration.Externs, namespaceDeclaration.Usings)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (5)
ConvertToInterpolatedString\ConvertPlaceholderToInterpolatedStringTests.cs (1)
78return formatString + "," + string.Join(",", Enumerable.Range(0, numberOfParameters));
EditAndContinue\SyntaxComparerTests.cs (2)
159Enumerable.Range(0, 10000).Select(i => i < 2000 ? t1 : t2), 160Enumerable.Range(0, 10000).Select(i => i < 2000 ? t1 : t3));
SemanticSearch\CSharpSemanticSearchServiceTests.cs (1)
185string.Join(Environment.NewLine, Enumerable.Repeat($" at Program.<<Main>$>g__F|0_1(Int64 x) in {FeaturesResources.Query}:line 7", 31)) + Environment.NewLine +
src\Analyzers\CSharp\Tests\AbstractBuiltInCodeStyleDiagnosticAnalyzer\AbstractBuiltInCodeStyleDiagnosticAnalyzerTests.cs (1)
21var ids = Enumerable.Range(10, 20).Select(item => "IDE_" + item);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests.cs (2)
707public string s = {string.Join(" + ", Enumerable.Repeat("(string)o", 1000))}; 720Enumerable.Range(0, nTasks).AsParallel()
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (5)
InteractiveSessionTests.cs (3)
1001typeof(Enumerable).GetTypeInfo().Assembly); 1368AddReferences(typeof(Enumerable).GetTypeInfo().Assembly); 1379AddReferences(typeof(Enumerable).GetTypeInfo().Assembly);
ObjectFormatterTests.cs (1)
504obj = Enumerable.Range(0, 10).Where(i =>
ScriptTests.cs (1)
1082byte[] bytes = Enumerable.Repeat((byte)'Q', text.Length + padding).ToArray();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\ConstantTests.cs (6)
2993var range = Enumerable.Range(0, numConstants); 3023var range = Enumerable.Range(0, numConstants); 3080var range = Enumerable.Range(0, numConstants); 3110var range = Enumerable.Range(0, numConstants); 3170var range = Enumerable.Range(0, numEnums); 3203var range = Enumerable.Range(0, numEnums);
Semantics\DeconstructionTests.cs (2)
1481var tuple = String.Join(", ", Enumerable.Range(1, 22).Select(n => n.ToString())); 1482var variables = String.Join(", ", Enumerable.Range(1, 22).Select(n => $"x{n}"));
Semantics\DelegateTypeTests.cs (3)
13186var range = Enumerable.Range(1, 17); 13236var range = Enumerable.Range(1, 17); 13259var range = Enumerable.Range(1, 16);
Semantics\OverloadResolutionPerfTests.cs (1)
189var diagnostics = Enumerable.Range(0, n / 2).
Semantics\UnsafeTests.cs (1)
2671var fieldTypes = Enumerable.Range(0, 8).Select(i => type.GetMember<FieldSymbol>("f" + i).TypeWithAnnotations).ToArray();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Compilation\CompilationAPITests.cs (2)
495comp = comp.AddReferences(Enumerable.Empty<MetadataReference>()); 798comp = comp.AddSyntaxTrees(Enumerable.Empty<SyntaxTree>());
Compilation\CSharpCompilationOptionsTests.cs (2)
206var actual2 = new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(Enumerable.Repeat("A", 1)).Usings; 207Assert.True(actual2.SequenceEqual(Enumerable.Repeat("A", 1)));
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
4656string[] includeElements = Enumerable.Range(0, 4).Select(i => string.Format(includeElementTemplate, xmlFilePath, i)).ToArray();
DocumentationComments\DocumentationModeTests.cs (1)
404var modes = Enumerable.Range((int)DocumentationMode.None, DocumentationMode.Diagnose - DocumentationMode.None + 1).Select(i => (DocumentationMode)i);
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);
Symbols\Source\ExternAliasTests.cs (2)
402var comp3 = CreateCompilation(Enumerable.Range(1, numFiles).Select(x => "extern alias X;").ToArray(), new[] { ref1, ref2 }, assemblyName: "A3.dll"); 428var comp3 = CreateCompilation(Enumerable.Range(1, numFiles).Select(x => "extern alias X;").ToArray(), assemblyName: "A3.dll");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Parsing\CollectionExpressionParsingTests.cs (1)
17096var text = $"[{string.Join(", ", Enumerable.Range(1, count).Select(i => $"A{i}"))}]";
Parsing\FileModifierParsingTests.cs (1)
2460var manyFileModifiers = string.Join(" ", Enumerable.Repeat("file", FileModifiersCount));
Syntax\SyntaxAnnotationTests.cs (2)
255var annotations = new List<SyntaxAnnotation>(Enumerable.Range(0, 3).Select(_ => new SyntaxAnnotation())); 385var annotations = new List<SyntaxAnnotation>(Enumerable.Range(0, 10).Select(_ => new SyntaxAnnotation()));
Syntax\SyntaxEquivalenceTests.cs (2)
1292var expr = string.Join(" + ", Enumerable.Range(0, 10000).Select(_ => "a")); 1320var expr = string.Join(" + ", Enumerable.Range(0, 10000).Select(_ => "a"));
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 (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.SingleLineRewriter.cs (1)
28token = token.WithLeadingTrivia(Enumerable.Empty<SyntaxTrivia>());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
95[.. Enumerable.Repeat<ExpressionSyntax>(OmittedArraySizeExpression(), arrayType.Rank)])); 204? Enumerable.Repeat((TypeSyntax)OmittedTypeArgument(), symbol.TypeArguments.Length)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1745else if (name.Equals(nameof(Enumerable.Select)) || 1746name.Equals(nameof(Enumerable.Where)))
Microsoft.CodeAnalysis.EditorFeatures (2)
ExternalAccess\UnitTesting\UnitTestingReferencesService.cs (1)
22Enumerable.Empty<(string MethodFullyQualifedName, string MethodFilePath, string MethodOutputFilePath)>();
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
256Enumerable.Range(0, _snapshotData.InitialSortedItemList.Count)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (12)
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);
EmbeddedLanguages\StackFrame\StackFrameSyntaxFactory.cs (1)
158=> new(OpenBracketToken.With(leadingTrivia: leadingTrivia.ToImmutableArray()), CloseBracketToken.With(trailingTrivia: trailingTrivia.ToImmutableArray()), Enumerable.Repeat(CommaToken, commaCount).ToImmutableArray());
Tagging\AsynchronousTaggerTests.cs (2)
71(_, s) => Enumerable 85snapshot, Enumerable.Range(0, 101).Select(i => new Span(i * 4, 1)));
Tagging\TagSpanIntervalTreeTests.cs (5)
83var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(50, count: 50).Select(s => new Span(s, 1)).ToArray()); 97var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray()); 112var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray()); 126var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray()); 140var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray());
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
ReflectionUtilities.cs (1)
56typeof(Enumerable).Assembly, // System.Core.dll
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 (34)
AddImport\SymbolReferenceFinder.cs (1)
452searchScope, nameof(Enumerable.Select), type, predicate: null, cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
91var candidates = Enumerable.Range(1, parts.Length)
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (2)
219if (memberName == nameof(Enumerable.ElementAt) && 331generator.MemberAccessExpression(collectionExpression, generator.IdentifierName(nameof(Enumerable.ElementAt))),
Debugging\AbstractDataTipInfoGetter.cs (1)
48ContainingType.Name: nameof(Enumerable),
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
40var annotations = Enumerable.Range((int)TriviaLocation.BeforeBeginningOfSpan, TriviaLocationsCount)
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (2)
106var tokens = Enumerable.Range((int)TriviaLocation.BeforeBeginningOfSpan, TriviaLocationsCount) 131var triviaPairs = Enumerable.Range((int)TriviaLocation.BeforeBeginningOfSpan, TriviaLocationsCount)
FullyQualify\AbstractFullyQualifyService.cs (1)
291=> Enumerable.Any(@namespace.GetAllTypes(cancellationToken), t => t.IsAccessibleWithin(model.Compilation.Assembly));
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
89var typeArgIndices = Enumerable.Range(0, _selectedType.TypeParameters.Length)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
143semanticModel.Compilation.GetBestTypeByMetadataName(typeof(Enumerable).FullName!) != null;
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (2)
120.Add(WellKnownDiagnosticTags.Unnecessary, Enumerable.Range(additionalLocations.Length, additionalUnnecessaryLocations.Length)); 191.Add(WellKnownDiagnosticTags.Unnecessary, Enumerable.Range(additionalLocations.Length, additionalUnnecessaryLocations.Length));
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (15)
28nameof(Enumerable.First), 29nameof(Enumerable.Last), 30nameof(Enumerable.Single), 31nameof(Enumerable.Any), 32nameof(Enumerable.Count), 33nameof(Enumerable.SingleOrDefault), 34nameof(Enumerable.FirstOrDefault), 35nameof(Enumerable.LastOrDefault), 39nameof(Enumerable.Average), 40nameof(Enumerable.Sum), 41nameof(Enumerable.Min), 42nameof(Enumerable.Max), 71enumerableType = compilation.GetTypeByMetadataName(typeof(Enumerable)?.FullName!); 76=> TryGetLinqExtensionMethod(enumerableType, nameof(Enumerable.Where), out linqMethod); 79=> TryGetLinqExtensionMethod(enumerableType, nameof(Enumerable.Select), out linqMethod);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (2)
30(nameof(Enumerable.Concat), isLinq: true), 31(nameof(Enumerable.Append), isLinq: true),
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (3)
67var enumerableType = semanticModel.Compilation.GetBestTypeByMetadataName(typeof(Enumerable).FullName!); 98nameof(Enumerable.Cast), 108generator.IdentifierName(nameof(Enumerable.Select))),
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
154private static readonly Task<IEnumerable<Diagnostic>> EmptyDiagnosticResult = Task.FromResult(Enumerable.Empty<Diagnostic>());
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\ActiveStatementTestHelpers.cs (1)
88src = src[..start] + string.Join("", Enumerable.Repeat(Environment.NewLine, lineCount)) + src[end..];
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
4364var tasks = Enumerable.Range(0, 10).Select(async i =>
Microsoft.CodeAnalysis.LanguageServer (1)
ExportProviderBuilder.cs (1)
190var erroredParts = configuration.CompositionErrors.FirstOrDefault()?.SelectMany(error => error.Parts).Select(part => part.Definition.Type.Name) ?? Enumerable.Empty<string>();
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
SpellCheck\SpellCheckTests.cs (2)
75var markup = string.Join(Environment.NewLine, Enumerable.Range(0, 5500).Select(v => 80{{string.Join(Environment.NewLine, Enumerable.Repeat("", random.Next() % 5))}}
Microsoft.CodeAnalysis.Test.Utilities (1)
Assert\EqualityUnit`1.cs (1)
22get { return Enumerable.Repeat(Value, 1).Concat(EqualValues).Concat(NotEqualValues); }
Microsoft.CodeAnalysis.UnitTests (171)
Collections\EnumerableExtensionsTests.cs (7)
26Assert.Equal(0, Enumerable.Range(1, 0).AsSingleton()); 27Assert.Equal(1, Enumerable.Range(1, 1).AsSingleton()); 28Assert.Equal(0, Enumerable.Range(1, 2).AsSingleton()); 55Assert.Equal(-1, Enumerable.Range(1, 5).IndexOf(6)); 56Assert.Equal(2, Enumerable.Range(1, 5).IndexOf(3)); 70Assert.Equal(-1, Enumerable.Range(1, 5).IndexOf(-6, comparer)); 71Assert.Equal(2, Enumerable.Range(1, 5).IndexOf(-3, comparer));
Collections\HashSet\ISet_Generic_Tests`1.cs (1)
146if (set.Count == 0 || !Enumerable.Any(enumerable))
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (1)
100SegmentedHashSet<T> hashSetFromDuplicates = new SegmentedHashSet<T>(Enumerable.Range(0, 40).SelectMany(i => items).ToArray());
Collections\IdentifierCollectionTests.cs (4)
41Assert.True(Enumerable.SequenceEqual(strings.OrderBy(x => x), idcol.OrderBy(x => x))); 50Assert.True(Enumerable.SequenceEqual(strings.OrderBy(x => x), copy.OrderBy(x => x))); 58Assert.True(Enumerable.SequenceEqual(strings.OrderBy(x => x), idcol.OrderBy(x => x))); 67Assert.True(Enumerable.SequenceEqual(strings.OrderBy(x => x), copy.OrderBy(x => x)));
Collections\ImmutableArrayExtensionsTests.cs (4)
31a = ImmutableArray.CreateRange<int>(Enumerable.Range(1, 2)); 349Assert.True(r.SequenceEqual(Enumerable.Range(1, 3))); 350Assert.False(r.SequenceEqual(Enumerable.Range(1, 2))); 351Assert.False(r.SequenceEqual(Enumerable.Range(1, 4)));
Collections\ImmutableDictionaryTestBase.cs (1)
312Assert.True(IsSame(map, map.RemoveRange(Enumerable.Empty<TKey>())));
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (5)
91map = map.AddRange(Enumerable.Range(1, 100).Select(n => new KeyValuePair<int, GenericParameterHelper>(n, new GenericParameterHelper()))); 92CollectionAssertAreEquivalent(map.Select(kv => kv.Key).ToList(), Enumerable.Range(1, 100).ToList()); 198Assert.True(IsSame(empty, empty.RemoveRange(Enumerable.Empty<int>()))); 199Assert.True(IsSame(empty, empty.AddRange(Enumerable.Empty<KeyValuePair<int, int>>()))); 202var halfRemoved = nonEmpty.RemoveRange(Enumerable.Range(1, 5));
Collections\ImmutableListTestBase.cs (15)
116var list = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(5, 3)); 136var list = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(1, 5)); 175var list = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(100, 5).Concat(Enumerable.Range(100, 5))); 229var list = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(100, 5).Concat(Enumerable.Range(100, 5))); 333var list = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(5, 10)); 344var list = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(5, 10)); 362var list = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(5, 10)); 371var list = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(5, 10)); 382var list = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(5, 10)); 404ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(1, 50)), 405ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(1, 50).Reverse()), 450var basis = new List<int>(Enumerable.Range(1, 50).Select(n => n * 2)); 475var reverseSorted = System.Collections.Immutable.ImmutableArray.CreateRange(Enumerable.Range(1, 150).Select(n => n * 2).Reverse());
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (4)
97.AddRange(Enumerable.Range(1, 10).Select(n => new KeyValuePair<int, string?>(n, null))) 100Enumerable.Range(1, 10).Select(n => new KeyValuePair<int, string?>(n, null)), 109Enumerable.Range(1, 11).Select(n => new KeyValuePair<int, string?>(n, null)), 119Enumerable.Range(1, 11).Select(n => new KeyValuePair<int, string?>(n, null)),
Collections\ImmutableSegmentedHashSetBuilderTest.cs (21)
81var builder = ImmutableSegmentedHashSet<int>.Empty.Union(Enumerable.Range(1, 10)).ToBuilder(); 82CollectionAssertAreEquivalent(Enumerable.Range(1, 10).ToArray(), builder.ToArray()); 89CollectionAssertAreEquivalent(Enumerable.Range(1, 11).ToArray(), builder.ToArray()); 97CollectionAssertAreEquivalent(Enumerable.Range(1, 11).ToArray(), builder.ToArray()); 211var builder = ImmutableSegmentedHashSet.CreateRange(Enumerable.Range(1, 3)).ToBuilder(); 213Assert.False(builder.IsProperSubsetOf(Enumerable.Range(1, 3))); 214Assert.True(builder.IsProperSubsetOf(Enumerable.Range(1, 5))); 220var builder = ImmutableSegmentedHashSet.CreateRange(Enumerable.Range(1, 3)).ToBuilder(); 222Assert.False(builder.IsProperSupersetOf(Enumerable.Range(1, 3))); 223Assert.True(builder.IsProperSupersetOf(Enumerable.Range(1, 2))); 229var builder = ImmutableSegmentedHashSet.CreateRange(Enumerable.Range(1, 3)).ToBuilder(); 231Assert.False(builder.IsSubsetOf(Enumerable.Range(1, 2))); 232Assert.True(builder.IsSubsetOf(Enumerable.Range(1, 3))); 233Assert.True(builder.IsSubsetOf(Enumerable.Range(1, 5))); 239var builder = ImmutableSegmentedHashSet.CreateRange(Enumerable.Range(1, 3)).ToBuilder(); 241Assert.False(builder.IsSupersetOf(Enumerable.Range(1, 4))); 242Assert.True(builder.IsSupersetOf(Enumerable.Range(1, 3))); 243Assert.True(builder.IsSupersetOf(Enumerable.Range(1, 2))); 249var builder = ImmutableSegmentedHashSet.CreateRange(Enumerable.Range(1, 3)).ToBuilder(); 251Assert.True(builder.Overlaps(Enumerable.Range(3, 2))); 252Assert.False(builder.Overlaps(Enumerable.Range(4, 3)));
Collections\ImmutableSegmentedListBuilderTest.cs (8)
96var builder = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(1, 10)).ToBuilder(); 97Assert.Equal(Enumerable.Range(1, 10), builder); 104Assert.Equal(Enumerable.Range(1, 11), builder); 112Assert.Equal(Enumerable.Range(1, 11), builder); 229var mutable = ImmutableSegmentedList.CreateRange(Enumerable.Range(1, 3)).ToBuilder(); 231Assert.Equal(Enumerable.Range(1, 3).Reverse(), mutable); 237var mutable = ImmutableSegmentedList.CreateRange(Enumerable.Range(1, 3)).ToBuilder(); 256var mutable = ImmutableSegmentedList.CreateRange(Enumerable.Range(1, 3)).ToBuilder();
Collections\ImmutableSegmentedListTest.cs (15)
61int[] values = Enumerable.Range(0, inputLength).Select(i => random.Next()).ToArray(); 75values = Enumerable.Range(0, inputLength).Select(i => random.Next()).ToArray(); 139var bulkList = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(1, 10).Select(i => i * 10)); 148list = list.AddRange(Enumerable.Range(4, 2)); 151list = list.AddRange(ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(9, 1000))); 152Assert.Equal(Enumerable.Range(1, 1008), list); 200list = list.AddRange(Enumerable.Range(expectedTotalSize + 1, batchSize)); 207list = list.AddRange(Enumerable.Range(expectedTotalSize + 1, largeBatchSize)); 210Assert.Equal(Enumerable.Range(1, expectedTotalSize), list); 285Assert.Equal(Enumerable.Range(1, 5), list); 302list = list.InsertRange(3, ImmutableSegmentedList<int>.Empty.InsertRange(0, Enumerable.Range(4, 100))); 303Assert.Equal(Enumerable.Range(1, 105), list); 416list.RemoveRange(Enumerable.Range(1, 1).Select<int, int>(n => { throw ExceptionUtilities.Unreachable(); })); 473var list = ImmutableSegmentedList.CreateRange(Enumerable.Range(1, 3)); 718Assert.Equal(Enumerable.Range(1, 3), populatedList.Reverse());
Collections\ImmutableSetTest.cs (5)
34var arrayWithDuplicates = Enumerable.Range(1, 100).Concat(Enumerable.Range(1, 100)).ToArray(); 96Empty<int>().Except(Enumerable.Range(1, 1).Select(n => { enumerated = true; return n; })); 392Assert.True(IsSame(set, set.Except(Enumerable.Empty<T>()))); 488Assert.True(IsSame(set, set.Union(Enumerable.Empty<T>())));
Collections\ImmutableSetTest.nonnetstandard.cs (5)
31SymmetricExceptTestHelper(Empty<int>().Add(1).Add(3).Add(5).Add(7), Enumerable.Range(0, 9).ToArray()); 32SymmetricExceptTestHelper(Empty<int>().Add(1).Add(3).Add(5).Add(7), Enumerable.Range(0, 5).ToArray()); 49IntersectTestHelper(Empty<int>().Union(Enumerable.Range(1, 10)), 8, 3, 5); 58UnionTestHelper(this.Empty<int>().Union(new[] { 2 }), Enumerable.Range(0, 1000).ToArray()); 139Assert.True(set.Intersect(Enumerable.Empty<T>()).Count == 0);
Collections\ImmutablesTestBase.nonnetstandard.cs (2)
51Enumerable.Empty<TElement>(), 60bool expectedResult = value != null && Enumerable.SequenceEqual(objectUnderTest, value);
Collections\IndexOfTests.cs (4)
50var list = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(100, 5).Concat(Enumerable.Range(100, 5))); 118var list = ImmutableSegmentedList<int>.Empty.AddRange(Enumerable.Range(100, 5).Concat(Enumerable.Range(100, 5)));
Collections\List\ICollection.Generic.Tests.cs (5)
536Assert.True(Enumerable.SequenceEqual(collection, array)); 546Assert.True(Enumerable.SequenceEqual(collection, array.Take(count))); 568if (!IsReadOnly && !AddRemoveClear_ThrowsNotSupported && DefaultValueAllowed && !Enumerable.Contains(InvalidValues, default(T))) 592while (collection.Contains(value) || Enumerable.Contains(InvalidValues, value)) 603if (!IsReadOnly && !AddRemoveClear_ThrowsNotSupported && DefaultValueAllowed && !Enumerable.Contains(InvalidValues, default(T)))
Collections\List\IList.Generic.Tests.cs (5)
134Assert.All(Enumerable.Range(0, count), index => result = list[index]); 357Assert.All(Enumerable.Range(0, count), index => 388Assert.All(Enumerable.Range(0, count), (index => 585Assert.All(Enumerable.Range(0, count).Reverse(), index => 600Assert.All(Enumerable.Range(0, count), index =>
Collections\List\IList.NonGeneric.Tests.cs (8)
239Assert.All(Enumerable.Range(0, count), index => result = list[index]); 685Assert.All(Enumerable.Range(0, count), index => 721Assert.All(Enumerable.Range(0, count), (index => 878if (!IsReadOnly && !ExpectedFixedSize && NullAllowed && !Enumerable.Contains(InvalidValues, null)) 902while (list.Contains(value) || Enumerable.Contains(InvalidValues, value)) 921if (!IsReadOnly && !ExpectedFixedSize && NullAllowed && !Enumerable.Contains(InvalidValues, null)) 1057Assert.All(Enumerable.Range(0, count).Reverse(), index => 1072Assert.All(Enumerable.Range(0, count), index =>
Collections\List\SegmentedList.Generic.Tests.AddRange.cs (2)
39Assert.All(Enumerable.Range(0, listLength), index => 45Assert.All(Enumerable.Range(0, enumerableLength), index =>
Collections\List\SegmentedList.Generic.Tests.BinarySearch.cs (2)
34Assert.All(Enumerable.Range(0, list.Count), index => 53Assert.All(Enumerable.Range(0, list.Count), index =>
Collections\List\SegmentedList.Generic.Tests.IndexOf.cs (6)
95Assert.All(Enumerable.Range(0, count), i => 139Assert.All(Enumerable.Range(0, count), i => 158Assert.All(Enumerable.Range(0, count), i => 160Assert.All(Enumerable.Range(0, 4), j => 179Assert.All(Enumerable.Range(0, count), i => 181Assert.All(Enumerable.Range(0, 4), j =>
Collections\List\SegmentedList.Generic.Tests.Sort.cs (6)
39Assert.All(Enumerable.Range(0, count - 2), i => 53Assert.All(Enumerable.Range(0, count - 2), i => 70Assert.All(Enumerable.Range(0, count - 2), i => 84Assert.All(Enumerable.Range(0, count - 2), i => 102Assert.All(Enumerable.Range(0, count - 2), i => 117Assert.All(Enumerable.Range(0, count - 2), i =>
Collections\SegmentedCollectionsMarshalTests.cs (22)
582test<int>(Enumerable.Range(0, 17)); 583test<int?>(Enumerable.Range(0, 17).Cast<int?>()); 584test<Guid>(Enumerable.Range(0, 17).Select(_ => Guid.NewGuid())); 585test<Guid?>(Enumerable.Range(0, 17).Select(_ => (Guid?)Guid.NewGuid())); 586test<string>(Enumerable.Range(0, 17).Select(_ => Guid.NewGuid().ToString())); 587test<CustomClass>(Enumerable.Range(0, 17).Select(_ => new CustomClass())); 588test<ManagedCustomStruct>(Enumerable.Range(0, 17).Select(_ => new ManagedCustomStruct() { Bar = Guid.NewGuid() })); 589test<ManagedCustomStruct?>(Enumerable.Range(0, 17).Select(_ => (ManagedCustomStruct?)new ManagedCustomStruct() { Bar = Guid.NewGuid() })); 590test<UnmanagedCustomStruct>(Enumerable.Range(0, 17).Select(_ => new UnmanagedCustomStruct() { Foo = Guid.NewGuid() })); 591test<UnmanagedCustomStruct?>(Enumerable.Range(0, 17).Select(_ => (UnmanagedCustomStruct?)new UnmanagedCustomStruct() { Foo = Guid.NewGuid() })); 654test<int>(Enumerable.Range(0, 17)); 655test<int?>(Enumerable.Range(0, 17).Cast<int?>()); 656test<Guid>(Enumerable.Range(0, 17).Select(_ => Guid.NewGuid())); 657test<Guid?>(Enumerable.Range(0, 17).Select(_ => (Guid?)Guid.NewGuid())); 658test<string>(Enumerable.Range(0, 17).Select(_ => Guid.NewGuid().ToString())); 659test<CustomClass>(Enumerable.Range(0, 17).Select(_ => new CustomClass())); 660test<ManagedCustomStruct>(Enumerable.Range(0, 17).Select(_ => new ManagedCustomStruct() { Bar = Guid.NewGuid() })); 661test<ManagedCustomStruct?>(Enumerable.Range(0, 17).Select(_ => (ManagedCustomStruct?)new ManagedCustomStruct() { Bar = Guid.NewGuid() })); 662test<UnmanagedCustomStruct>(Enumerable.Range(0, 17).Select(_ => new UnmanagedCustomStruct() { Foo = Guid.NewGuid() })); 663test<UnmanagedCustomStruct?>(Enumerable.Range(0, 17).Select(_ => (UnmanagedCustomStruct?)new UnmanagedCustomStruct() { Foo = Guid.NewGuid() })); 701SegmentedDictionary<int, TValue> dictionary = new SegmentedDictionary<int, TValue>(Enumerable.Range(0, 17).Select(x => new KeyValuePair<int, TValue>(x, createValue()))); 768ImmutableSegmentedDictionary<int, T> immutableDictionary = ImmutableSegmentedDictionary.CreateRange(Enumerable.Range(0, 17).Select(x => new KeyValuePair<int, T>(x, createValue())));
Collections\TemporaryArrayTests.cs (4)
92array.AddRange(Enumerable.Range(0, TemporaryArray<int>.TestAccessor.InlineCapacity + 1).ToImmutableArray()); 108array.AddRange(Enumerable.Range(0, addedItems).ToImmutableArray()); 180Assert.Equal(Enumerable.Range(0, initialItems), immutableArray); 215foreach (var permutation in permute(Enumerable.Range(0, i).ToArray()))
Collections\TopologicalSortTests.cs (3)
138var possibleSort = Enumerable.Range(0, numberOfNodes).ToArray(); 150var wasAcyclic = TopologicalSort.TryIterativeSort(Enumerable.Range(0, numberOfNodes).ToArray(), succF, out var sorted); 164wasAcyclic = TopologicalSort.TryIterativeSort(Enumerable.Range(0, numberOfNodes).ToArray(), succF, out sorted);
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (1)
98Enumerable.SequenceEqual(_fileHash, other._fileHash);
Text\SourceTextTests.cs (2)
434from start in Enumerable.Range(0, totalLength) 435from length in Enumerable.Range(0, totalLength - start)
Text\TextChangeTests.cs (3)
965var originalText = SourceText.From(string.Join("", Enumerable.Range(0, random.Next(10)))); 978var newText = string.Join("", Enumerable.Repeat('a', random.Next(oldMaxInsertLength))); 998var newText = string.Join("", Enumerable.Repeat('b', random.Next(newMaxInsertLength)));
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Metadata\PE\PEAssemblySymbol.vb (1)
8Imports System.Linq.Enumerable
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Binding\BindingObjectInitializerTests.vb (1)
5Imports System.Linq.Enumerable
Binding\ForEachTests.vb (1)
6Imports System.Linq.Enumerable
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
Syntax\SyntaxAnnotationTests.vb (4)
238Dim annotations = New List(Of SyntaxAnnotation)(Enumerable.Range(0, 3).Select(Function(x) 269Dim lastChildOfFirstNode = Enumerable.Last(children, Function(t) t.IsNode).AsNode() 281Dim rightNode = Enumerable.Last(firstNodeInNewTree.ChildNodesAndTokens(), Function(t) t.IsNode).AsNode() 357Dim annotations = New List(Of SyntaxAnnotation)(Enumerable.Range(0, 10).Select(Function(s) New SyntaxAnnotation()))
Microsoft.CodeAnalysis.Workspaces (16)
Editing\SyntaxEditor.cs (1)
107var nodes = Enumerable.Distinct(_changes.Where(c => OriginalRoot.Contains(c.OriginalNode))
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
803/// Unlike <see cref="Enumerable.SingleOrDefault{TSource}(IEnumerable{TSource})"/> doesn't throw if there is more than one element in the sequence. 919public static IEnumerable<T> Reverse<T>(this T[] source) => Enumerable.Reverse(source);
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (5)
69: Enumerable.Last(immutableList); 81: Enumerable.Last(builder); 98return Enumerable.Empty<T>().Last(); 110return Enumerable.Empty<TResult>(); 114return Enumerable.Select(immutableList, selector);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ChildSyntaxListExtensions.cs (2)
21return Enumerable.First(childSyntaxList, predicate); 33return Enumerable.Last(childSyntaxList, predicate);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (1)
183=> $"Interval tree with '{System.Linq.Enumerable.Count(this)}' entries. Use '.ToList()' to visualize contents.";
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>()),
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
572if (!Enumerable.SequenceEqual(compilationWithoutGeneratedDocuments.ExternalReferences, newReferences))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (8)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
803/// Unlike <see cref="Enumerable.SingleOrDefault{TSource}(IEnumerable{TSource})"/> doesn't throw if there is more than one element in the sequence. 919public static IEnumerable<T> Reverse<T>(this T[] source) => Enumerable.Reverse(source);
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (1)
638=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
src\Dependencies\Collections\ImmutableSegmentedListExtensions.cs (5)
69: Enumerable.Last(immutableList); 81: Enumerable.Last(builder); 98return Enumerable.Empty<T>().Last(); 110return Enumerable.Empty<TResult>(); 114return Enumerable.Select(immutableList, selector);
Microsoft.CodeAnalysis.Workspaces.UnitTests (11)
ChecksumTests.cs (1)
136var checksums = Enumerable.Range(0, max).Select(i => Checksum.Create($"{i}")).ToArray();
ObjectSerializationTests.cs (1)
268Assert.True(Enumerable.SequenceEqual(expected, (byte[])reader.ReadByteArray()));
SolutionTests\SolutionTests.cs (1)
2924var projectIds = Enumerable.Range(0, 5).Select(i => ProjectId.CreateNewId()).ToArray();
SymbolKeyTests.cs (1)
1476MetadataReference.CreateFromFile(typeof(Enumerable).Assembly.Location)
UtilityTest\IntervalTreeTests.cs (3)
413var tree = ImmutableIntervalTree<int>.CreateFromUnsorted(new Int32IntervalIntrospector(), new(Enumerable.Range(1, i))); 416AssertEx.Equal(tree, Enumerable.Range(1, i)); 438var allInts = Enumerable.Range(1, totalCount + j);
UtilityTest\NameGeneratorTests.cs (3)
76var isFixed = Enumerable.Repeat(true, names.Length).ToArray(); 103isFixedBuilder.AddRange(isFixed ?? Enumerable.Repeat(false, names.Length)); 107Assert.True(Enumerable.SequenceEqual(expectedResult, namesBuilder));
WorkspaceServiceTests\TemporaryStorageServiceTests.cs (1)
118var tasks = Enumerable.Range(1, 257).Select(async i =>
Microsoft.Data.Analysis (2)
DataFrame.cs (2)
171return Clone(new PrimitiveDataFrameColumn<int>("Filter", Enumerable.Range(0, numberOfRows))); 345int[] shuffleArray = Enumerable.Range(0, shuffleUpperLimit).ToArray();
Microsoft.Data.Analysis.Interactive.Tests (2)
DataFrameInteractiveTests.cs (2)
22DataFrameColumn dataFrameColumn1 = new Int32DataFrameColumn("Int1", Enumerable.Range(0, length).Select(x => x)); 23DataFrameColumn dataFrameColumn2 = new Int32DataFrameColumn("Int2", Enumerable.Range(10, length).Select(x => x));
Microsoft.Data.Analysis.PerformanceTests (1)
PerformanceTests.cs (1)
33var values = Enumerable.Range(1, ItemsCount).ToArray();
Microsoft.Data.Analysis.Tests (621)
ArrowIntegrationTests.cs (30)
29.Append("Column1", false, col => col.Int32(array => array.AppendRange(Enumerable.Range(0, 10)))) 31valueBuffer: new ArrowBuffer.Builder<int>().AppendRange(Enumerable.Range(0, 10)).Build(), 37valueBuffer: new ArrowBuffer.Builder<int>().AppendRange(Enumerable.Range(0, 10)).Build(), 48.Append("StringDataFrameColumn", false, new StringArray.Builder().AppendRange(Enumerable.Range(0, 10).Select(x => x.ToString())).Build()) 49.Append("DoubleColumn", false, new DoubleArray.Builder().AppendRange(Enumerable.Repeat(1.0, 10)).Build()) 50.Append("FloatColumn", false, new FloatArray.Builder().AppendRange(Enumerable.Repeat(1.0f, 10)).Build()) 51.Append("ShortColumn", false, new Int16Array.Builder().AppendRange(Enumerable.Repeat((short)1, 10)).Build()) 52.Append("LongColumn", false, new Int64Array.Builder().AppendRange(Enumerable.Repeat((long)1, 10)).Build()) 53.Append("UIntColumn", false, new UInt32Array.Builder().AppendRange(Enumerable.Repeat((uint)1, 10)).Build()) 54.Append("UShortColumn", false, new UInt16Array.Builder().AppendRange(Enumerable.Repeat((ushort)1, 10)).Build()) 55.Append("ULongColumn", false, new UInt64Array.Builder().AppendRange(Enumerable.Repeat((ulong)1, 10)).Build()) 56.Append("ByteColumn", false, new Int8Array.Builder().AppendRange(Enumerable.Repeat((sbyte)1, 10)).Build()) 57.Append("UByteColumn", false, new UInt8Array.Builder().AppendRange(Enumerable.Repeat((byte)1, 10)).Build()) 58.Append("Date64Column", false, new Date64Array.Builder().AppendRange(Enumerable.Repeat(DateTime.Now, 10)).Build()) 80.Append(prependColumnNamesWith + "Column1", false, col => col.Int32(array => array.AppendRange(Enumerable.Range(0, 10)))) 82valueBuffer: new ArrowBuffer.Builder<int>().AppendRange(Enumerable.Range(0, 10)).Build(), 88valueBuffer: new ArrowBuffer.Builder<int>().AppendRange(Enumerable.Range(0, 10)).Build(), 99.Append(prependColumnNamesWith + "StringDataFrameColumn", false, new StringArray.Builder().AppendRange(Enumerable.Range(0, 10).Select(x => x.ToString())).Build()) 100.Append(prependColumnNamesWith + "DoubleColumn", false, new DoubleArray.Builder().AppendRange(Enumerable.Repeat(1.0, 10)).Build()) 101.Append(prependColumnNamesWith + "FloatColumn", false, new FloatArray.Builder().AppendRange(Enumerable.Repeat(1.0f, 10)).Build()) 102.Append(prependColumnNamesWith + "ShortColumn", false, new Int16Array.Builder().AppendRange(Enumerable.Repeat((short)1, 10)).Build()) 103.Append(prependColumnNamesWith + "LongColumn", false, new Int64Array.Builder().AppendRange(Enumerable.Repeat((long)1, 10)).Build()) 104.Append(prependColumnNamesWith + "UIntColumn", false, new UInt32Array.Builder().AppendRange(Enumerable.Repeat((uint)1, 10)).Build()) 105.Append(prependColumnNamesWith + "UShortColumn", false, new UInt16Array.Builder().AppendRange(Enumerable.Repeat((ushort)1, 10)).Build()) 106.Append(prependColumnNamesWith + "ULongColumn", false, new UInt64Array.Builder().AppendRange(Enumerable.Repeat((ulong)1, 10)).Build()) 107.Append(prependColumnNamesWith + "ByteColumn", false, new Int8Array.Builder().AppendRange(Enumerable.Repeat((sbyte)1, 10)).Build()) 108.Append(prependColumnNamesWith + "UByteColumn", false, new UInt8Array.Builder().AppendRange(Enumerable.Repeat((byte)1, 10)).Build()) 175.Append("Column1", false, col => col.Int32(array => array.AppendRange(Enumerable.Range(0, 10)))).Build(); 191.Append("EmptyNullBitMapColumn", false, col => col.Int32(array => array.AppendRange(Enumerable.Range(0, 10)))) 226Int32Array int32 = new Int32Array.Builder().AppendRange(Enumerable.Range(0, 520)).Build();
DataFrameColumn.BinaryOperationTests.cs (495)
26var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 28var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 31var verify = Enumerable.Range(1, 10).Select(x => (int)(2 * x)); 39var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 41var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 44var verify = Enumerable.Range(1, 10).Select(x => (decimal)(2 * x)); 52var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 54var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 57var verify = Enumerable.Range(1, 10).Select(x => (double)(2 * x)); 65var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 67var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 70var verify = Enumerable.Range(1, 10).Select(x => (float)(2 * x)); 78var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 80var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 83var verify = Enumerable.Range(1, 10).Select(x => (int)(2 * x)); 91var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 93var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 96var verify = Enumerable.Range(1, 10).Select(x => (long)(2 * x)); 104var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 106var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 109var verify = Enumerable.Range(1, 10).Select(x => (int)(2 * x)); 117var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 119var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 122var verify = Enumerable.Range(1, 10).Select(x => (int)(2 * x)); 130var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 132var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 135var verify = Enumerable.Range(1, 10).Select(x => (uint)(2 * x)); 143var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 145var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 148var verify = Enumerable.Range(1, 10).Select(x => (ulong)(2 * x)); 156var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 158var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 161var verify = Enumerable.Range(1, 10).Select(x => (int)(2 * x)); 169var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 173var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 181var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 185var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x + (decimal)value)); 193var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 197var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x + (double)value)); 205var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 209var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x + (float)value)); 217var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 221var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 229var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 233var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x + (long)value)); 241var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 245var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 253var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 257var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 265var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 269var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x + (uint)value)); 277var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 281var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x + (ulong)value)); 289var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 293var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 301var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 305var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 313var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 317var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x + (decimal)value)); 325var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 329var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x + (double)value)); 337var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 341var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x + (float)value)); 349var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 353var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 361var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 365var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x + (long)value)); 373var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 377var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 385var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 389var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 397var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 401var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x + (uint)value)); 409var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 413var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x + (ulong)value)); 421var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 425var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 433var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 435var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 438var verify = Enumerable.Range(1, 10).Select(x => (int)0); 446var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 448var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 451var verify = Enumerable.Range(1, 10).Select(x => (decimal)0); 459var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 461var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 464var verify = Enumerable.Range(1, 10).Select(x => (double)0); 472var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 474var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 477var verify = Enumerable.Range(1, 10).Select(x => (float)0); 485var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 487var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 490var verify = Enumerable.Range(1, 10).Select(x => (int)0); 498var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 500var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 503var verify = Enumerable.Range(1, 10).Select(x => (long)0); 511var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 513var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 516var verify = Enumerable.Range(1, 10).Select(x => (int)0); 524var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 526var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 529var verify = Enumerable.Range(1, 10).Select(x => (int)0); 537var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 539var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 542var verify = Enumerable.Range(1, 10).Select(x => (uint)0); 550var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 552var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 555var verify = Enumerable.Range(1, 10).Select(x => (ulong)0); 563var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 565var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 568var verify = Enumerable.Range(1, 10).Select(x => (int)0); 576var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 580var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x - (int)value)); 588var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 592var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x - (decimal)value)); 600var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 604var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x - (double)value)); 612var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 616var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x - (float)value)); 624var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 628var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x - (int)value)); 636var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 640var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x - (long)value)); 648var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 652var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x - (int)value)); 660var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 664var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x - (int)value)); 672var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 676var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x - (uint)value)); 684var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 688var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x - (ulong)value)); 696var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 700var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x - (int)value)); 708var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 712var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value - (int)x)); 720var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 724var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)value - (decimal)x)); 732var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 736var verify = Enumerable.Range(1, 10).Select(x => (double)((double)value - (double)x)); 744var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 748var verify = Enumerable.Range(1, 10).Select(x => (float)((float)value - (float)x)); 756var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 760var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value - (int)x)); 768var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 772var verify = Enumerable.Range(1, 10).Select(x => (long)((long)value - (long)x)); 780var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 784var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value - (int)x)); 792var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 796var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value - (int)x)); 804var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 808var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)value - (uint)x)); 816var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 820var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)value - (ulong)x)); 828var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 832var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value - (int)x)); 840var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 842var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 845var verify = Enumerable.Range(1, 10).Select(x => (int)(x * x)); 853var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 855var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 858var verify = Enumerable.Range(1, 10).Select(x => (decimal)(x * x)); 866var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 868var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 871var verify = Enumerable.Range(1, 10).Select(x => (double)(x * x)); 879var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 881var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 884var verify = Enumerable.Range(1, 10).Select(x => (float)(x * x)); 892var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 894var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 897var verify = Enumerable.Range(1, 10).Select(x => (int)(x * x)); 905var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 907var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 910var verify = Enumerable.Range(1, 10).Select(x => (long)(x * x)); 918var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 920var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 923var verify = Enumerable.Range(1, 10).Select(x => (int)(x * x)); 931var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 933var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 936var verify = Enumerable.Range(1, 10).Select(x => (int)(x * x)); 944var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 946var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 949var verify = Enumerable.Range(1, 10).Select(x => (uint)(x * x)); 957var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 959var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 962var verify = Enumerable.Range(1, 10).Select(x => (ulong)(x * x)); 970var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 972var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 975var verify = Enumerable.Range(1, 10).Select(x => (int)(x * x)); 983var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 987var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 995var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 999var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x * (decimal)value)); 1007var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1011var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x * (double)value)); 1019var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1023var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x * (float)value)); 1031var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1035var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1043var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1047var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x * (long)value)); 1055var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1059var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1067var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1071var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1079var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1083var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x * (uint)value)); 1091var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1095var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x * (ulong)value)); 1103var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1107var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1115var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1119var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1127var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1131var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x * (decimal)value)); 1139var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1143var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x * (double)value)); 1151var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1155var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x * (float)value)); 1163var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1167var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1175var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1179var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x * (long)value)); 1187var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1191var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1199var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1203var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1211var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1215var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x * (uint)value)); 1223var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1227var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x * (ulong)value)); 1235var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1239var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1247var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1249var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1252var verify = Enumerable.Range(1, 10).Select(x => (int)(1)); 1260var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1262var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 1265var verify = Enumerable.Range(1, 10).Select(x => (decimal)(1)); 1273var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1275var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 1278var verify = Enumerable.Range(1, 10).Select(x => (double)(1)); 1286var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1288var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 1291var verify = Enumerable.Range(1, 10).Select(x => (float)(1)); 1299var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1301var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 1304var verify = Enumerable.Range(1, 10).Select(x => (int)(1)); 1312var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1314var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 1317var verify = Enumerable.Range(1, 10).Select(x => (long)(1)); 1325var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1327var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 1330var verify = Enumerable.Range(1, 10).Select(x => (int)(1)); 1338var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1340var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 1343var verify = Enumerable.Range(1, 10).Select(x => (int)(1)); 1351var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1353var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 1356var verify = Enumerable.Range(1, 10).Select(x => (uint)(1)); 1364var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1366var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 1369var verify = Enumerable.Range(1, 10).Select(x => (ulong)(1)); 1377var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1379var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 1382var verify = Enumerable.Range(1, 10).Select(x => (int)(1)); 1390var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1394var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x / (int)value)); 1402var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1406var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x / (decimal)value)); 1414var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1418var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x / (double)value)); 1426var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1430var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x / (float)value)); 1438var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1442var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x / (int)value)); 1450var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1454var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x / (long)value)); 1462var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1466var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x / (int)value)); 1474var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1478var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x / (int)value)); 1486var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1490var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x / (uint)value)); 1498var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1502var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x / (ulong)value)); 1510var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1514var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x / (int)value)); 1522var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1526var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value / (int)x)); 1534var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1538var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)value / (decimal)x)); 1546var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1550var verify = Enumerable.Range(1, 10).Select(x => (double)((double)value / (double)x)); 1558var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1562var verify = Enumerable.Range(1, 10).Select(x => (float)((float)value / (float)x)); 1570var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1574var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value / (int)x)); 1582var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1586var verify = Enumerable.Range(1, 10).Select(x => (long)((long)value / (long)x)); 1594var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1598var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value / (int)x)); 1606var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1610var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value / (int)x)); 1618var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1622var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)value / (uint)x)); 1630var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1634var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)value / (ulong)x)); 1642var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1646var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value / (int)x)); 1654var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1656var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1659var verify = Enumerable.Range(1, 10).Select(x => (int)(0)); 1667var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1669var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 1672var verify = Enumerable.Range(1, 10).Select(x => (decimal)(0)); 1680var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1682var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 1685var verify = Enumerable.Range(1, 10).Select(x => (double)(0)); 1693var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1695var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 1698var verify = Enumerable.Range(1, 10).Select(x => (float)(0)); 1706var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1708var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 1711var verify = Enumerable.Range(1, 10).Select(x => (int)(0)); 1719var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1721var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 1724var verify = Enumerable.Range(1, 10).Select(x => (long)(0)); 1732var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1734var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 1737var verify = Enumerable.Range(1, 10).Select(x => (int)(0)); 1745var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1747var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 1750var verify = Enumerable.Range(1, 10).Select(x => (int)(0)); 1758var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1760var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 1763var verify = Enumerable.Range(1, 10).Select(x => (uint)(0)); 1771var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1773var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 1776var verify = Enumerable.Range(1, 10).Select(x => (ulong)(0)); 1784var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1786var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 1789var verify = Enumerable.Range(1, 10).Select(x => (int)(0)); 1797var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1801var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x % (int)value)); 1809var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1813var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x % (decimal)value)); 1821var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1825var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x % (double)value)); 1833var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1837var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x % (float)value)); 1845var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1849var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x % (int)value)); 1857var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1861var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x % (long)value)); 1869var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1873var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x % (int)value)); 1881var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1885var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x % (int)value)); 1893var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1897var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x % (uint)value)); 1905var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1909var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x % (ulong)value)); 1917var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1921var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x % (int)value)); 1929var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1933var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value % (int)x)); 1941var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1945var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)value % (decimal)x)); 1953var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1957var verify = Enumerable.Range(1, 10).Select(x => (double)((double)value % (double)x)); 1965var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1969var verify = Enumerable.Range(1, 10).Select(x => (float)((float)value % (float)x)); 1977var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1981var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value % (int)x)); 1989var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1993var verify = Enumerable.Range(1, 10).Select(x => (long)((long)value % (long)x)); 2001var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2005var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value % (int)x)); 2013var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2017var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value % (int)x)); 2025var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2029var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)value % (uint)x)); 2037var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2041var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)value % (ulong)x)); 2049var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2053var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value % (int)x)); 2061var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2063var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2066var verify = Enumerable.Range(1, 10).Select(x => true); 2076var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2078var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 2081var verify = Enumerable.Range(1, 10).Select(x => true); 2091var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2093var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 2096var verify = Enumerable.Range(1, 10).Select(x => true); 2106var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2108var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 2111var verify = Enumerable.Range(1, 10).Select(x => true); 2121var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2123var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 2126var verify = Enumerable.Range(1, 10).Select(x => true); 2136var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2138var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 2141var verify = Enumerable.Range(1, 10).Select(x => true); 2151var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2153var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 2156var verify = Enumerable.Range(1, 10).Select(x => true); 2166var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2168var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 2171var verify = Enumerable.Range(1, 10).Select(x => true); 2181var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2183var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 2186var verify = Enumerable.Range(1, 10).Select(x => true); 2196var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2198var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 2201var verify = Enumerable.Range(1, 10).Select(x => true); 2211var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2213var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 2216var verify = Enumerable.Range(1, 10).Select(x => true); 2226var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2230var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2238var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2242var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2250var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2254var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2262var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2266var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2274var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2278var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2286var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2290var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2298var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2302var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2310var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2314var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2322var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2326var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2334var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2338var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2346var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2350var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2358var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2360var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2363var verify = Enumerable.Range(1, 10).Select(x => true); 2373var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2375var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 2378var verify = Enumerable.Range(1, 10).Select(x => true); 2388var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2390var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 2393var verify = Enumerable.Range(1, 10).Select(x => true); 2403var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2405var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 2408var verify = Enumerable.Range(1, 10).Select(x => true); 2418var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2420var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 2423var verify = Enumerable.Range(1, 10).Select(x => true); 2433var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2435var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 2438var verify = Enumerable.Range(1, 10).Select(x => true); 2448var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2450var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 2453var verify = Enumerable.Range(1, 10).Select(x => true); 2463var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2465var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 2468var verify = Enumerable.Range(1, 10).Select(x => true); 2478var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2480var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 2483var verify = Enumerable.Range(1, 10).Select(x => true); 2493var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2495var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 2498var verify = Enumerable.Range(1, 10).Select(x => true); 2508var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2510var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 2513var verify = Enumerable.Range(1, 10).Select(x => true); 2523var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2527var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2535var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2539var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2547var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2551var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2559var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2563var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2571var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2575var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2583var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2587var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2595var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2599var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2607var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2611var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2619var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2623var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2631var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2635var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2643var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2647var verify = Enumerable.Range(1, 10).Select(x => (bool)(false));
DataFrameGroupByTests.cs (2)
113DataFrameColumn parityColumn = new StringDataFrameColumn("Parity", Enumerable.Range(0, length).Select(x => x % 2 == 0 ? "even" : "odd")); 114DataFrameColumn tensColumn = new Int32DataFrameColumn("Tens", Enumerable.Range(0, length).Select(x => x / 10));
DataFrameIDataViewTests.cs (1)
116DataFrameColumn boolColumn = new PrimitiveDataFrameColumn<bool>("Bool", Enumerable.Range(0, (int)df.Rows.Count).Select(x => x % 2 == 1));
DataFrameTests.BinaryOperations.cs (8)
164var dataFrameColumn1 = new DoubleDataFrameColumn("Double1", Enumerable.Range(0, 10).Select(x => (double)x)); 174var dataFrameColumn1 = new BooleanDataFrameColumn("Bool1", Enumerable.Range(0, 10).Select(x => true)); 175var dataFrameColumn2 = new BooleanDataFrameColumn("Bool2", Enumerable.Range(0, 10).Select(x => true)); 206var dataFrameColumn1 = new DateTimeDataFrameColumn("DateTime1", Enumerable.Range(0, 5).Select(x => SampleDateTime.AddDays(x))); 208var dataFrameColumn2 = new DateTimeDataFrameColumn("DateTime2", Enumerable.Range(0, 4).Select(x => SampleDateTime.AddDays(x))); 304DataFrameColumn stringColumn = new StringDataFrameColumn("String", Enumerable.Range(0, 10).Select(x => x.ToString())); 315DataFrameColumn stringColumnCopy = new StringDataFrameColumn("String", Enumerable.Range(0, 10).Select(x => x.ToString())); 436Int32DataFrameColumn column = new Int32DataFrameColumn("Int", Enumerable.Range(0, 10));
DataFrameTests.Computations.cs (1)
417IEnumerable<int> range = Enumerable.Range(startingFrom, length);
DataFrameTests.cs (25)
63DataFrameColumn intColumn = new Int32DataFrameColumn("IntColumn", Enumerable.Range(0, rowCount).Select(x => x)); 64DataFrameColumn floatColumn = new SingleDataFrameColumn("FloatColumn", Enumerable.Range(0, rowCount).Select(x => (float)x)); 77DataFrameColumn bigColumn = new SingleDataFrameColumn("BigColumn", Enumerable.Range(0, rowCount + 1).Select(x => (float)x)); 82DataFrameColumn smallColumn = new SingleDataFrameColumn("SmallColumn", Enumerable.Range(0, rowCount - 1).Select(x => (float)x)); 87DataFrameColumn repeatedName = new SingleDataFrameColumn("FloatColumn", Enumerable.Range(0, rowCount).Select(x => (float)x)); 91DataFrameColumn extraColumn = new SingleDataFrameColumn("OtherFloatColumn", Enumerable.Range(0, rowCount).Select(x => (float)x)); 96DataFrameColumn intColumnCopy = new Int32DataFrameColumn("IntColumn", Enumerable.Range(0, rowCount).Select(x => x)); 99DataFrameColumn differentIntColumn = new Int32DataFrameColumn("IntColumn1", Enumerable.Range(0, rowCount).Select(x => x)); 118DataFrameColumn intColumn = new Int32DataFrameColumn("NewIntColumn", Enumerable.Range(0, 10).Select(x => x)); 152DataFrameColumn intColumn = new Int32DataFrameColumn("NewIntColumn", Enumerable.Range(0, 10).Select(x => x)); 220var column = new Int32DataFrameColumn("Int", Enumerable.Range(0, 10)); 806Assert.Throws<ArgumentException>(() => df.Columns.Insert(1, new Int32DataFrameColumn("Int2", Enumerable.Range(0, 5).Select(x => x)))); 1204StringDataFrameColumn column = new StringDataFrameColumn("Strings", Enumerable.Range(0, 11).Select(x => x.ToString())); 1250DataFrameColumn stringColumn = DataFrameColumn.Create("String", Enumerable.Range(0, length).Select(x => x.ToString())); 1252DataFrameColumn byteColumn = DataFrameColumn.Create("Byte", Enumerable.Range(0, length).Select(x => (byte)x)); 1254DataFrameColumn decimalColumn = DataFrameColumn.Create("Decimal", Enumerable.Range(0, length).Select(x => (decimal)x)); 1256DataFrameColumn doubleColumn = DataFrameColumn.Create("Double", Enumerable.Range(0, length).Select(x => (double)x)); 1258DataFrameColumn floatColumn = DataFrameColumn.Create("Float", Enumerable.Range(0, length).Select(x => (float)x)); 1260DataFrameColumn intColumn = DataFrameColumn.Create("Int", Enumerable.Range(0, length).Select(x => x)); 1262DataFrameColumn longColumn = DataFrameColumn.Create("Long", Enumerable.Range(0, length).Select(x => (long)x)); 1264DataFrameColumn sbyteColumn = DataFrameColumn.Create("Sbyte", Enumerable.Range(0, length).Select(x => (sbyte)x)); 1266DataFrameColumn shortColumn = DataFrameColumn.Create("Short", Enumerable.Range(0, length).Select(x => (short)x)); 1268DataFrameColumn uintColumn = DataFrameColumn.Create("Uint", Enumerable.Range(0, length).Select(x => (uint)x)); 1270DataFrameColumn ulongColumn = DataFrameColumn.Create("Ulong", Enumerable.Range(0, length).Select(x => (ulong)x)); 1272DataFrameColumn ushortColumn = DataFrameColumn.Create("Ushort", Enumerable.Range(0, length).Select(x => (ushort)x));
DataFrameTests.Filter.cs (3)
45DataFrame intEnumerableFiltered = df[Enumerable.Range(0, 10)]; 46DataFrame boolEnumerableFiltered = df[Enumerable.Range(0, 10).Select(x => true)]; 47DataFrame longEnumerableFiltered = df[Enumerable.Range(0, 10).Select(x => (long)x)];
DataFrameTests.Merge.cs (2)
22DataFrameColumn leftStringColumn = new StringDataFrameColumn("String", Enumerable.Range(0, leftCount).Select(x => "Left")); 26DataFrameColumn rightStringColumn = new StringDataFrameColumn("String", Enumerable.Range(0, rightCount).Select(x => "Right"));
DataFrameTests.Utils.cs (12)
19DataFrameColumn dataFrameColumn1 = new Int32DataFrameColumn("Int1", Enumerable.Range(0, length).Select(x => x)); 20DataFrameColumn dataFrameColumn2 = new Int32DataFrameColumn("Int2", Enumerable.Range(10, length).Select(x => x)); 79var buffers = Enumerable.Repeat(new VBuffer<int>(5, new[] { 0, 1, 2, 3, 4 }), length).ToArray(); 105DataFrameColumn boolColumn = new BooleanDataFrameColumn("Bool", Enumerable.Range(0, length).Select(x => x % 2 == 0)); 117DataFrameColumn boolColumn = new BooleanDataFrameColumn("Bool", Enumerable.Range(0, length).Select(x => x % 2 == 0)); 129DataFrameColumn stringColumn = new StringDataFrameColumn("String", Enumerable.Range(0, length).Select(x => x.ToString())); 136DataFrameColumn charColumn = new CharDataFrameColumn("Char", Enumerable.Range(0, length).Select(x => (char)(x + 65))); 150DataFrameColumn dateTimeColumn = new DateTimeDataFrameColumn("DateTime", Enumerable.Range(0, length).Select(x => SampleDateTime.AddDays(x))); 161IEnumerable<int> range = Enumerable.Range(startingFrom, length); 207DataFrameColumn baseColumn1 = DataFrameColumn.Create("Column1", Enumerable.Range(0, length).Select(x => (T1)Convert.ChangeType(x % 2 == 0 ? 0 : 1, typeof(T1)))); 208DataFrameColumn baseColumn2 = DataFrameColumn.Create("Column2", Enumerable.Range(0, length).Select(x => (T2)Convert.ChangeType(x % 2 == 0 ? 0 : 1, typeof(T2)))); 224IEnumerable<int> randomIndices = Enumerable.Range(0, (int)input.Rows.Count);
PrimitiveDataFrameColumnComputationsTests.cs (36)
39Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 40Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 41Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum())); 49Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 50Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 51Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum())); 59Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 60Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 61Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum())); 69Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 70Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 71Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum())); 79Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 80Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 81Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum())); 89Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 90Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 91Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum())); 99Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 100Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 101Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum())); 109Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 110Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 111Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum())); 119Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 120Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 121Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum())); 129Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 130Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 131Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum())); 139Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 140Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 141Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum())); 149Assert.Equal(Enumerable.Max(Int32Values), Convert.ToInt32(column.Max())); 150Assert.Equal(Enumerable.Min(Int32Values), Convert.ToInt32(column.Min())); 151Assert.Equal(Enumerable.Sum(Int32Values), Convert.ToInt32(column.Sum()));
PrimitiveDataFrameColumnTests.cs (5)
63StringDataFrameColumn strCol2 = new StringDataFrameColumn("String", Enumerable.Range(0, 10).Select(x => x.ToString())); 66StringDataFrameColumn strCol3 = new StringDataFrameColumn("String", Enumerable.Range(0, 10).Select(x => (string)null)); 97PrimitiveDataFrameColumn<int> dataFrameColumn1 = new PrimitiveDataFrameColumn<int>("Int1", Enumerable.Range(0, 10).Select(x => x)); 126PrimitiveDataFrameColumn<int> dataFrameColumn1 = new PrimitiveDataFrameColumn<int>("Int1", Enumerable.Range(0, 10)); 136PrimitiveDataFrameColumn<int> intColumn = new PrimitiveDataFrameColumn<int>("Int", Enumerable.Range(0, 10));
VBufferColumnTests.cs (1)
28var buffers = Enumerable.Repeat(new VBuffer<int>(5, new[] { 0, 1, 2, 3, 4 }), 10).ToArray();
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)
AsyncCollectionAssertsTests.cs (4)
607 var enumerator = new SpyEnumerator<int>(Enumerable.Empty<int>().ToAsyncEnumerable()); 859 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1009 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1073 var enumerator = new SpyEnumerator<int>(Enumerable.Range(0, 1).ToAsyncEnumerable());
CollectionAssertsTests.cs (6)
685 var enumerator = new SpyEnumerator<int>(Enumerable.Empty<int>()); 919 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 943 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1099 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1220 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1636 var enumerator = new SpyEnumerator<int>(Enumerable.Range(0, 1));
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
489from i in Enumerable.Range(0, functionCount)
Microsoft.Extensions.AI.Abstractions.Tests (6)
ChatCompletion\ChatMessageTests.cs (1)
95Assert.Equal(string.Concat(Enumerable.Range(0, messageCount).Select(i => $"text-{i}")), message.ToString());
Embeddings\EmbeddingGeneratorExtensionsTests.cs (3)
49string[] inputs = Enumerable.Range(0, count).Select(i => $"hello {i}").ToArray(); 50Embedding<float>[] embeddings = Enumerable 52.Select(i => new Embedding<float>(Enumerable.Range(i, 4).Select(i => (float)i).ToArray()))
test\Shared\JsonSchemaExporter\TestTypes.cs (2)
1099public IEnumerator<int> GetEnumerator() => Enumerable.Repeat(BaseValue, 1).GetEnumerator(); 1111public IEnumerator<KeyValuePair<string, int>> GetEnumerator() => Enumerable.Repeat(new KeyValuePair<string, int>(nameof(BaseValue), BaseValue), 1).GetEnumerator();
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\ConfigureOptionsChatClientTests.cs (1)
38var expectedUpdates = Enumerable.Range(0, 3).Select(i => new StreamingChatCompletionUpdate()).ToArray();
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
70Embedding<float>[] expected = Enumerable.Range(0, 10).Select(i =>
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
26private static readonly char[] _keyReservedCharacters = Enumerable.Range(0, 32).Select(i => (char)i).ToArray();
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.Diagnostics.ResourceMonitoring.Tests (3)
CircularBufferTests.cs (3)
33var elementsToAdd = Enumerable.Range(1, BufferSize * 3).ToList(); 51var bufferElements = Enumerable.Range(1, BufferSize).ToList(); 70var bufferElements = Enumerable.Range(1, BufferSize).ToList();
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 (3)
Logging\HttpClientLoggerTest.cs (2)
101Enumerable.Empty<IHttpClientLogEnricher>(), 144Enumerable.Empty<IHttpClientLogEnricher>(),
Logging\Internal\RandomStringGenerator.cs (1)
18Enumerable
Microsoft.Extensions.Http.Resilience.PerformanceTests (2)
HttpClientFactory.cs (2)
82options.Groups = Enumerable.Repeat(0, routes).Select(_ => 105options.Groups = Enumerable.Repeat(0, routes).Select(_ =>
Microsoft.Extensions.Http.Resilience.Tests (1)
Internal\RandomizerTest.cs (1)
18var actions = Enumerable.Range(0, 1000).Select(_ =>
Microsoft.Extensions.Localization (1)
ResourceManagerStringLocalizer.cs (1)
143foreach (var name in resourceNames ?? Enumerable.Empty<string>())
Microsoft.Extensions.Options.Contextual.Tests (37)
AcceptanceTests.cs (1)
58return Enumerable.Range(1, options.ForecastDays).Select(index => new WeatherForecast
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.Interop.SourceGeneration (1)
Marshalling\GeneratorDiagnostic.cs (1)
57DiagnosticProperties.Add(WellKnownDiagnosticTags.Unnecessary, $"[{string.Join(",", Enumerable.Range(0, UnnecessaryDataLocations.Length))}]"),
Microsoft.Maui (1)
LifecycleEvents\LifecycleEventService.cs (1)
37 return Enumerable.Empty<TDelegate>();
Microsoft.Maui.Controls (6)
Compatibility\Handlers\Shell\iOS\ShellPageRendererTracker.cs (2)
299 foreach (var item in System.Linq.Enumerable.OrderBy(Page.ToolbarItems, x => x.Priority)) 306 foreach (var item in System.Linq.Enumerable.OrderBy(shellToolbarItems, x => x.Priority))
Compatibility\iOS\Extensions\UIViewExtensions.cs (1)
24 return Enumerable.Empty<UIView>();
SwipeView\SwipeItems.cs (1)
32 public SwipeItems() : this(Enumerable.Empty<ISwipeItem>())
TemplatedItemsList.cs (2)
1004 _templatedObjects.InsertRange(_templatedObjects.Count, Enumerable.Repeat<TItem>(null, maxindex - _templatedObjects.Count)); 1014 _templatedObjects.InsertRange(e.NewStartingIndex, Enumerable.Repeat<TItem>(null, e.NewItems.Count));
Microsoft.Maui.Controls.Build.Tasks (5)
ModuleDefinitionExtensions.cs (5)
52 var ctorKey = $"{type}.ctor({(string.Join(",", Enumerable.Repeat("_", paramCount)))})"; 58 var ctorKey = $"{type}.ctor({(string.Join(",", Enumerable.Repeat("_", paramCount)))})"; 64 var ctorKey = $"{type}<{(string.Join(",", classArguments))}>.ctor({(string.Join(",", Enumerable.Repeat("_", paramCount)))})"; 70 var ctorKey = $"{type}<{string.Join(",", classArguments.Select(SerializeTypeReference))}>.ctor({(string.Join(",", Enumerable.Repeat("_", paramCount)))})"; 220 var methodKey = $"{(isStatic ? "static " : "")}{type}<{(classArguments == null ? "" : string.Join(",", classArguments))}>.({(string.Join(",", Enumerable.Repeat("_", paramCount)))})";
Microsoft.Maui.Controls.Foldable (1)
DualScreenInfo.cs (1)
128 !Enumerable.SequenceEqual(_spanningBounds, value))
Microsoft.ML.AutoML (10)
AutoMLExperiment\ITrialResultManager.cs (1)
96}.Concat(Enumerable.Range(0, _searchSpace.FeatureSpaceDim).Select(i => $"parameter_{i}"));
ColumnInference\TextFileSample.cs (1)
141var chunkStartIndices = Enumerable.Range(0, chunkCount)
Tuner\SmacTuner.cs (2)
178var randomChallengers = Enumerable.Range(0, numOfCandidates - eiChallengers.Length).Select(i => _randomTuner.Propose(new TrialSettings())); 206var randomParameters = Enumerable.Range(0, _numRandomEISearchConfigurations).Select(i => _randomTuner.Propose(new TrialSettings()));
Utils\ArrayMath.cs (6)
36return Enumerable.Range(0, array.Length).OrderBy(index => array[index]).ToArray(); 94return Enumerable.Zip(xArray, yArray, (x, y) => x * y).ToArray(); 107return Enumerable.Zip(xArray, yArray, (x, y) => x + y).ToArray(); 133var diff = Enumerable.Range(0, truth.Length).Select(i => truth[i] - pred[i]).ToArray(); 148var diff = Enumerable.Range(0, truth.Length).Select(i => truth[i] - pred[i]).ToArray(); 162var diff = Enumerable.Range(0, truth.Length).Select(i => Math.Abs(truth[i] - pred[i])).ToArray();
Microsoft.ML.AutoML.Samples (2)
AutoMLExperiment.cs (1)
100Features = Enumerable.Repeat(label, 50)
Sweepable\SweepableLightGBMBinaryExperiment.cs (1)
127Features = Enumerable.Repeat(label, 50)
Microsoft.ML.AutoML.Tests (5)
GridSearchTunerTests.cs (1)
48foreach (var i in Enumerable.Range(0, steps * 2))
TrialResultManagerTest.cs (1)
35var trialResults = Enumerable.Range(0, 10)
TunerTests.cs (3)
176var invalidLosses = Enumerable.Repeat(new[] { double.NaN, double.NegativeInfinity, double.PositiveInfinity }, 100) 211var zeroLosses = Enumerable.Repeat(0.0, 100); 212var randomLosses = Enumerable.Range(0, 100).Select(i => i * 0.1);
Microsoft.ML.Core (8)
Data\IEstimator.cs (1)
22private static readonly SchemaShape _empty = new SchemaShape(Enumerable.Empty<Column>());
Utilities\MatrixTransposeOps.cs (6)
91IEnumerable<int> jenum = Enumerable.Range(0, jsteps).Select(j => j * _block); 92IEnumerable<int> ienum = Enumerable.Range(0, isteps).Select(i => i * _block); 143IEnumerable<int> jenum = Enumerable.Range(0, jsteps).Select(j => j * _block); 144IEnumerable<int> ienum = Enumerable.Range(0, isteps).Select(i => i * _block); 196IEnumerable<int> jenum = Enumerable.Range(0, jsteps).Select(j => j * _block); 197IEnumerable<int> ienum = Enumerable.Range(0, isteps).Select(i => i * _block);
Utilities\Utils.cs (1)
844invMap = Enumerable.Repeat(-1, lim).ToArray<int>();
Microsoft.ML.Core.Tests (19)
UnitTests\TestUtilities.cs (13)
27int[] x = Enumerable.Range(0, 10).ToArray(); 54List<float> x = Enumerable.Range(0, 1000000).Select(i => (float)i).ToList(); 88double[] x = Enumerable.Range(0, 1000000).Select(i => (double)i).ToArray(); 122int[] x = Enumerable.Range(0, 10).ToArray(); 164int[] x = Enumerable.Range(0, 10).ToArray(); 165int[] y = Enumerable.Range(0, 10).ToArray(); 187int[] xOfDifferentLength = Enumerable.Range(0, 9).ToArray(); 236float[] x = Enumerable.Range(0, 10).Select(i => (float)i).ToArray(); 237float[] y = Enumerable.Range(0, 10).Select(i => (float)i).ToArray(); 259float[] xOfDifferentLength = Enumerable.Range(0, 9).Select(i => (float)i).ToArray(); 272double[] x = Enumerable.Range(0, 10).Select(i => (double)i).ToArray(); 273double[] y = Enumerable.Range(0, 10).Select(i => (double)i).ToArray(); 295double[] xOfDifferentLength = Enumerable.Range(0, 9).Select(i => (double)i).ToArray();
UnitTests\TestVBuffer.cs (6)
140var values = Enumerable.Range(0, length).Select(x => x + 0.1f).ToArray(); 141var indicies = Enumerable.Range(0, 15).Where(x => x % 2 == 0).ToArray(); 163var values = Enumerable.Range(0, length).Select(x => x + 0.1f).ToArray(); 164var indicies = Enumerable.Range(0, 15).Where(x => x % 2 == 0).ToArray(); 284float[] values = Enumerable.Range(startRange, 10).Select(i => (float)i).ToArray(); 308float[] values = Enumerable.Range(1, 10).Select(i => (float)i).ToArray();
Microsoft.ML.Data (42)
Commands\TrainCommand.cs (1)
518return Enumerable.Empty<KeyValuePair<ColumnRole, string>>();
Data\RowCursorUtils.cs (2)
477env.CheckParam(Enumerable.Range(0, row.Schema.Count).All(c => row.IsColumnActive(row.Schema[c])), nameof(row), "Some columns were inactive"); 520_host.Assert(Enumerable.Range(0, row.Schema.Count).All(c => row.IsColumnActive(row.Schema[c])));
DataDebuggerPreview.cs (1)
62ColumnView = Enumerable.Range(0, n).Select(c => new ColumnInfo(data.Schema[c], columns[c].ToArray())).ToImmutableArray();
DataLoadSave\Binary\BinaryLoader.cs (1)
990var cols = Enumerable.Range(0, schema.Count)
DataLoadSave\Transpose\TransposeLoader.cs (1)
553env.Assert(Enumerable.Range(0, schema.Count).All(c => saver.IsColumnSavable(schema[c].Type)));
DataView\CacheDataView.cs (1)
663int[] actives = Enumerable.Range(0, _parent.Schema.Count).Where(pred).ToArray();
DataView\DataViewExtensions.cs (2)
44return dv.GetRowCursor(Enumerable.Repeat(columnNeeded, 1)); 50public static DataViewRowCursor GetRowCursor(this IDataView dv) => dv.GetRowCursor(Enumerable.Empty<DataViewSchema.Column>());
DataView\Transposer.cs (3)
148ch.Assert(Enumerable.Range(0, slicerSchema.Count).All(c => saver.IsColumnSavable(slicerSchema[c].Type))); 164toSave.AddRange(Enumerable.Range(min, count)); 877bool isActive = pred == null || Enumerable.Range(offset, splitter.OutputSchema.Count).Any(c => pred(c));
Dirty\ChooseColumnsByIndexTransform.cs (1)
89sources = Enumerable.Range(0, sourceSchema.Count).Except(selectedColumnIndexes).ToArray();
Evaluators\AucAggregator.cs (1)
432var sortedIndices = Enumerable.Range(0, posCount + negCount).OrderByDescending(i => sample[i].Score);
Evaluators\ClusteringEvaluator.cs (3)
453foreach (var index in Enumerable.Range(0, _scoresArr.Length).OrderBy(i => _scoresArr[i])) 479foreach (var index in Enumerable.Range(0, _scoresArr.Length).OrderBy(i => _scoresArr[i])) 672foreach (var index in Enumerable.Range(0, scoresArr.Length).OrderBy(i => scoresArr[i]))
Evaluators\MamlEvaluator.cs (1)
119? Enumerable.Empty<KeyValuePair<RoleMappedSchema.ColumnRole, string>>()
Evaluators\MulticlassClassificationEvaluator.cs (3)
115names = Enumerable.Range(0, numClasses).Select(i => i.ToString().AsMemory()).ToArray(); 226dst = new VBuffer<ReadOnlyMemory<char>>(allTopK.First().Length, Enumerable.Range(1, allTopK.First().Length).Select(i => new ReadOnlyMemory<char>(i.ToString().ToCharArray())).ToArray()); 736foreach (var index in Enumerable.Range(0, scoresArr.Length).OrderByDescending(i => scoresArr[i]))
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 (2)
359return Enumerable.Empty<DataViewSchema.Column>(); 361return Enumerable.Repeat(FeatureColumn, 1);
Scorers\SchemaBindablePredictorWrapper.cs (4)
223return Enumerable.Empty<DataViewSchema.Column>(); 225return Enumerable.Repeat(InputRoleMappedSchema.Feature.Value, 1); 543return Enumerable.Empty<DataViewSchema.Column>(); 545return Enumerable.Repeat(InputRoleMappedSchema.Feature.Value, 1);
Transforms\ColumnBindingsBase.cs (1)
567return Enumerable.Empty<KeyValuePair<string, DataViewType>>();
Transforms\KeyToValue.cs (1)
528var keys = Array.ConvertAll<int, long>(Enumerable.Range(1, _values.Length).ToArray(), item => Convert.ToInt64(item));
Transforms\KeyToVector.cs (1)
724node.AddAttribute("cats_int64s", Enumerable.Range(1, categoryRange).Select(x => (long)x));
Transforms\MetadataDispatcher.cs (1)
210return Enumerable.Empty<KeyValuePair<string, DataViewType>>();
Transforms\NormalizeColumnDbl.cs (3)
702nodeProtoWrapper.AddAttribute("offset", Enumerable.Repeat(Offset, featureCount)); 703nodeProtoWrapper.AddAttribute("scale", Enumerable.Repeat(Scale, featureCount)); 777node.AddAttribute("offset", Enumerable.Repeat<TFloat>(0, featureCount));
Transforms\NormalizeColumnSng.cs (3)
860node.AddAttribute("offset", Enumerable.Repeat(Offset, featureCount)); 861node.AddAttribute("scale", Enumerable.Repeat(Scale, featureCount)); 934node.AddAttribute("offset", Enumerable.Repeat<TFloat>(0, featureCount));
Utilities\SlotDropper.cs (3)
222var slots = Enumerable.Range(0, _srcLength); 223var droppedSlots = Enumerable.Range(SlotsMin[0], SlotsMax[0] - SlotsMin[0] + 1); 226droppedSlots = droppedSlots.Concat(Enumerable.Range(SlotsMin[i], SlotsMax[i] - SlotsMin[i] + 1));
Microsoft.ML.DataView (1)
SchemaDebuggerProxy.cs (1)
22Columns = Enumerable.Range(0, schema.Count).Select(x => schema[x]).ToArray();
Microsoft.ML.Ensemble (3)
PipelineEnsemble.cs (3)
98return Enumerable.Empty<DataViewSchema.Column>(); 145var predictorRow = Mappers[i].GetRow(pipelineRow, Enumerable.Repeat(Mappers[i].InputSchema[ScoreCols[i]], 1)); 186var inputColumns = Mappers[i].GetDependenciesForNewColumns(Enumerable.Repeat(weightCol, 1));
Microsoft.ML.FastTree (54)
Dataset\Dataset.cs (10)
160_maxDocsPerQuery = Enumerable.Range(0, NumQueries).Select(NumDocsInQuery).Max(); 273Dataset[] datasets = Enumerable.Range(0, numParts).Select(p => datasetSkeletonPart[p] == null ? 392var truncatedActiveFeatures = Enumerable.Repeat(true, NumFeatures).ToArray(); 621List<int>[] listQueries = Enumerable.Range(0, numParts).Select(x => new List<int>()).ToArray(numParts); 634assignment = Enumerable.Range(0, numParts).Select( 635p => queries[p].SelectMany(q => Enumerable.Range(Boundaries[q], Boundaries[q + 1] - Boundaries[q])).ToArray() 669DatasetSkeleton[] datasetSkeleton = Enumerable.Range(0, numParts).Select( 748double[][] maxAtN = Enumerable.Range(0, trunc).Select(x => new double[boundaries.Length - 1]).ToArray(trunc); 982Contracts.Assert(Enumerable.Range(0, _dataset.NumFlocks).All(f => 983Enumerable.Range(_dataset._flockToFirstFeature[f], _dataset._flocks[f].Count).Any(i => active[i]) ==
Dataset\DatasetUtils.cs (2)
37uint[] valueMap = Enumerable.Range(0, ((int)maxLab) + 1).Select(x => (uint)x + 5).ToArray(); 56Enumerable.Repeat(uvalToOrder[(uint)qid], skel.Boundaries[i + 1] - skel.Boundaries[i])));
Dataset\Feature.cs (1)
212: base(DenseIntArray.New(length, IntArrayType.Dense, 0, Enumerable.Repeat(0, length)))
FastTree.cs (3)
1575FeatureMap = Enumerable.Range(0, NumFeatures).Where(f => BinUpperBounds[f].Length > 1).ToArray(); 1630ulong[] dids = Enumerable.Range(0, numExamples).Select(d => (ulong)d).ToArray(numExamples); 2040FeatureMap = Enumerable.Range(0, NumFeatures).Where(f => BinUpperBounds[f].Length > 1).ToArray();
GamModelParameters.cs (2)
450var splitFeatures = Enumerable.Repeat(featureIndex, numInternalNodes).ToArray(); 482var binIndices = Enumerable.Range(0, numInternalNodes).ToArray();
SumupPerformanceCommand.cs (2)
234return Enumerable.Range(0, _len); 236return Enumerable.Empty<int>();
Training\Applications\ObjectiveFunction.cs (1)
65var queue = new ConcurrentQueue<int>(Enumerable.Range(0, BlockingThreadPool.NumThreads));
Training\DcgCalculator.cs (2)
166Parallel.ForEach(Enumerable.Range(0, dataset.NumQueries).Where(query => maxDCG3[query] > 0), 267Parallel.ForEach(Enumerable.Range(0, dataset.NumQueries).Where(query => maxDCG1[query] > 0),
Training\DocumentPartitioning.cs (4)
84List<int>[] perLeafDocumentLists = Enumerable.Range(0, tree.NumLeaves) 100_leafCount = Enumerable.Range(0, tree.NumLeaves) 101.Select(leaf => Enumerable.Range(0, perChunkDocumentLists.Length) 107_leafBegin = Enumerable.Range(0, 1).Concat(cumulativeLength).ToArray();
Training\OptimizationAlgorithms\GradientDescent.cs (1)
50Enumerable.Range(0, numberOfTrees).Where(t => (DropoutRng.NextDouble() < DropoutRate)).ToArray();
Training\RegressionTreeNodeDocuments.cs (1)
54return Enumerable.Repeat(this, 1);
Training\WinLossCalculator.cs (1)
55var queue = new ConcurrentQueue<int>(Enumerable.Range(0, BlockingThreadPool.NumThreads));
TreeEnsemble\InternalRegressionTree.cs (2)
984return Enumerable.Range(0, NumLeaves); 986return Enumerable.Range(~node, 1);
TreeEnsembleFeaturizer.cs (2)
368return Enumerable.Empty<DataViewSchema.Column>(); 370return Enumerable.Repeat(FeatureColumn, 1);
Utils\MappedObjectPool.cs (2)
29_map = Enumerable.Range(0, maxIndex).Select(x => -1).ToArray(maxIndex); 30_inverseMap = Enumerable.Range(0, _pool.Length).Select(x => -1).ToArray(_pool.Length);
Utils\PseudorandomFunction.cs (1)
22_data = _periodics.Select(x => Enumerable.Range(0, x).Select(y => rand.Next(-1, int.MaxValue) + 1).ToArray()).ToArray();
Utils\RegressionTreeBaseUtils.cs (16)
44treeWeightsList.AddRange(Enumerable.Repeat(treeWeights[i], trees[i].NumberOfNodes + trees[i].NumberOfLeaves)); 47treeId.AddRange(Enumerable.Repeat(i, trees[i].NumberOfNodes + trees[i].NumberOfLeaves)); 50isLeaf.AddRange(Enumerable.Repeat(new ReadOnlyMemory<char>("Tree node".ToCharArray()), trees[i].NumberOfNodes)); 51isLeaf.AddRange(Enumerable.Repeat(new ReadOnlyMemory<char>("Leaf node".ToCharArray()), trees[i].NumberOfLeaves)); 55leftChild.AddRange(Enumerable.Repeat(0, trees[i].NumberOfLeaves)); 59rightChild.AddRange(Enumerable.Repeat(0, trees[i].NumberOfLeaves)); 63numericalSplitFeatureIndexes.AddRange(Enumerable.Repeat(0, trees[i].NumberOfLeaves)); 67numericalSplitThresholds.AddRange(Enumerable.Repeat(0f, trees[i].NumberOfLeaves)); 71categoricalSplitFlags.AddRange(Enumerable.Repeat(false, trees[i].NumberOfLeaves)); 74leafValues.AddRange(Enumerable.Repeat(0d, trees[i].NumberOfNodes)); 79splitGains.AddRange(Enumerable.Repeat(0d, trees[i].NumberOfLeaves)); 94categoricalSplitFeatures.AddRange(Enumerable.Repeat(new VBuffer<int>(), trees[i].NumberOfLeaves)); 95categoricalCategoricalSplitFeatureRange.AddRange(Enumerable.Repeat(new VBuffer<int>(), trees[i].NumberOfLeaves)); 99builder.AddColumn("Bias", NumberDataViewType.Double, Enumerable.Repeat(bias, numberOfRows).ToArray()); 124leafSamples.AddRange(Enumerable.Repeat(new VBuffer<double>(), quantileTrees[i].NumberOfNodes)); 125leafSampleWeights.AddRange(Enumerable.Repeat(new VBuffer<double>(), quantileTrees[i].NumberOfNodes));
Utils\ThreadTaskManager.cs (1)
82Enumerable.Range(0, maxArgument)
Microsoft.ML.GenAI.Core (3)
Trainer\CausalLMDataset.cs (3)
86var enumerable = Enumerable.Range(0, labelIds.Count) 90var label = Enumerable.Repeat(-100L, train.Length).Concat([labelIds[i]]).Skip(1).ToArray(); 91var mask = Enumerable.Repeat(1L, train.Length).ToArray();
Microsoft.ML.GenAI.Mistral (1)
MistralCausalLMAgent.cs (1)
163return new string(Enumerable.Repeat(chars, length)
Microsoft.ML.GenAI.Phi (1)
Module\Phi2Model.cs (1)
44this.layers = new ModuleList<Phi2DecoderLayer>(Enumerable.Range(0, config.NumHiddenLayers).Select(i => new Phi2DecoderLayer(config)).ToArray());
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
240node.AddAttribute("values_int64s", Enumerable.Range(0, slotNames.Length).Select(x => (long)x));
Microsoft.ML.OnnxTransformer (1)
OnnxTransform.cs (1)
610return col => Enumerable.Range(0, _parent.Outputs.Length).Any(i => activeOutput(i)) && _inputColIndices.Any(i => i == col);
Microsoft.ML.Parquet (6)
ParquetLoader.cs (4)
427var allColumns = Enumerable.Range(0, Schema.Count).ToArray(); 478_dataSetEnumerator = Enumerable.Empty<int>().GetEnumerator(); 642order = _rand == null ? Enumerable.Range(0, size) : Utils.GetRandomPermutation(_rand, size); 646order = Enumerable.Range(0, size);
PartitionedFileLoader.cs (2)
278var allColumns = Enumerable.Range(0, Schema.Count).ToArray(); 652return Enumerable.Range(0, _parent._files.Count);
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
404bool[] center = Enumerable.Range(0, mean.Length).Select(i => mean[i] != null).ToArray();
Microsoft.ML.Recommender (1)
MatrixFactorizationPredictor.cs (1)
368return Enumerable.Empty<DataViewSchema.Column>();
Microsoft.ML.Samples (75)
Dynamic\TensorFlow\ImageClassification.cs (2)
101var image1 = Enumerable.Range(0, inputSize).Select( 104var image2 = Enumerable.Range(0, inputSize).Select(
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (1)
110Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (1)
107Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\FastForest.cs (1)
102Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (1)
114Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\FastTree.cs (1)
105Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (1)
117Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (1)
102Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (1)
111Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LdSvm.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (1)
108Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LightGbm.cs (1)
102Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (1)
113Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (1)
108Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (1)
107Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (1)
119Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (1)
106Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (1)
121Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (1)
111Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (1)
108Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (1)
102Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (1)
111Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\Clustering\KMeans.cs (1)
106Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
114Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
104Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
112Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
107Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
117Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
87Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
112Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
105Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
105Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
111Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
121Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
112Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
121Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\Ranking\FastTree.cs (1)
86Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (1)
100Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Ranking\LightGbm.cs (1)
86Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (1)
101Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastForest.cs (1)
83Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
96Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastTree.cs (1)
83Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
83Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
98Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
99Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\Gam.cs (1)
83Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
94Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
81Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
95Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\LightGbm.cs (1)
84Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
103Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
72Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
88Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
80Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
92Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\Sdca.cs (1)
80Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
96Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Transforms\ApplyOnnxModel.cs (2)
73var image1 = Enumerable.Range(0, inputSize).Select(x => (float)x / 76var image2 = Enumerable.Range(0, inputSize).Select(x => (float)(x +
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (1)
102Features = Enumerable.Repeat(0,
Dynamic\Transforms\TimeSeries\DetectSeasonality.cs (1)
18var seasonalData = Enumerable.Range(0, 100).Select(x => new TimeSeriesData(Math.Sin(2 * Math.PI + x)));
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (1)
136Features = Enumerable.Repeat(label, 3).Select(x => x ?
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (1)
134Features = Enumerable.Repeat(label, 3).Select(x => x +
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (1)
138Features = Enumerable.Repeat(label, 3).Select(x => x ?
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (1)
135Features = Enumerable.Repeat(label, 3).Select(x => randomFloat()
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (1)
134Features = Enumerable.Repeat(label, 3).Select(x => x +
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (1)
134Features = Enumerable.Repeat(label, 3).Select(x => x +
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (1)
145Features = Enumerable.Repeat(label, 3).Select(x => x ?
Microsoft.ML.Samples.GPU (2)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (2)
101var image1 = Enumerable.Range(0, inputSize).Select( 104var image2 = Enumerable.Range(0, inputSize).Select(
Microsoft.ML.SearchSpace (5)
Option\ChoiceOption.cs (1)
34Default = Enumerable.Repeat(0.0, FeatureSpaceDim).ToArray();
Option\UniformNumericOption.cs (1)
32Default = Enumerable.Repeat(0.0, FeatureSpaceDim).ToArray();
SearchSpace.cs (1)
155var featureSpace = Enumerable.Repeat(0.5, FeatureSpaceDim).ToArray();
Tuner\GridSearchTuner.cs (1)
24.Select(x => Enumerable.Range(0, x).Select(i => i * 1.0 / x).ToArray());
Tuner\RandomTuner.cs (1)
34var featureVec = Enumerable.Repeat(0, d).Select(i => _rnd.NextDouble()).ToArray();
Microsoft.ML.SearchSpace.Tests (10)
UniformNumericOptionTests.cs (10)
25var sampleInputs = Enumerable.Range(0, 10).Select(i => i * 0.1); 36var sampleInputs = Enumerable.Range(0, 10).Select(i => i * 0.1); 47var sampleInputs = Enumerable.Range(0, 10).Select(i => Parameter.FromInt(i * 10)); 65var sampleInputs = Enumerable.Range(0, 10).Select(i => Parameter.FromInt(Convert.ToInt32(Math.Pow(2, i)))); 68foreach (var i in Enumerable.Range(0, 10)) 79var sampleInputs = Enumerable.Range(0, 10).Select(i => i * 0.1); 92var sampleInputs = Enumerable.Range(0, 10).Select(i => i * 0.1); 105var sampleInputs = Enumerable.Range(0, 10).Select(i => Parameter.FromDouble(i * 10.0)); 116var sampleInputs = Enumerable.Range(0, 10).Select(i => Parameter.FromDouble(Math.Pow(2, i))); 119foreach (var i in Enumerable.Range(0, 10))
Microsoft.ML.StandardTrainers (3)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (1)
146return Enumerable.Empty<DataViewSchema.Column>();
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
996node.AddAttribute("classlabels_ints", Enumerable.Range(1, NumberOfClasses).Select(x => (long)x)); 1105bldr.AddColumn("ClassNames", Enumerable.Range(0, NumberOfClasses).Select(i => GetLabelName(i)).ToArray());
Microsoft.ML.Sweeper (2)
Algorithms\KdoSweeper.cs (1)
251double[] stddevs = Enumerable.Repeat(_args.Simple ? 0.2 : bandwidthScale, mu.Length).ToArray();
ConfigRunner.cs (1)
162RunNums.AddRange(Enumerable.Range(min, sweeps.Length));
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
781return col => Enumerable.Range(0, _parent.Outputs.Length).Any(i => activeOutput(i)) && _inputColIndices.Any(i => i == col);
Microsoft.ML.Tests (17)
CachingTests.cs (4)
43var trainData = Enumerable.Range(0, 100).Select(c => new MyData()).ToArray(); 53trainData = Enumerable.Range(0, 100).Select(c => new MyData()).ToArray(); 83var src = Enumerable.Range(0, 100).Select(c => new MyData()).ToArray(); 89src = Enumerable.Range(0, 100).Select(c => new MyData()).ToArray();
ImagesTests.cs (1)
1109Features = Enumerable.Repeat(0, InputSize).Select(x => random.NextDouble() * 100).ToArray()
OnnxConversionTest.cs (1)
1145return Enumerable.SequenceEqual(MissingIndicator, other.MissingIndicator);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
488return Enumerable.Range(0, 500)
Scenarios\Api\TestApi.cs (3)
385Assert.True(Enumerable.Intersect(uniqueTrain, uniqueTest).Count() == 0); 398Assert.True(Enumerable.Intersect(uniqueSeedTrain, uniqueSeedTest).Count() == 0); 503Assert.True(Enumerable.Intersect(idsTest1, idsTest2).Count() == 0);
TrainerEstimators\TreeEstimators.cs (1)
733Features = Enumerable.Repeat(label, 20)
Transformers\NormalizerTests.cs (2)
1036var tensor1 = Enumerable.Range(0, Size).Select( 1039var tensor2 = Enumerable.Range(0, Size).Select(
Transformers\RffTests.cs (4)
47new TestClass() { A = Enumerable.Range(0, 100).Select(x => (float)rand.NextDouble()).ToArray() }, 48new TestClass() { A = Enumerable.Range(0, 100).Select(x => (float)rand.NextDouble()).ToArray() } 95new TestClass() { A = Enumerable.Range(0, 100).Select(x => (float)rand.NextDouble()).ToArray() }, 96new TestClass() { A = Enumerable.Range(0, 100).Select(x => (float)rand.NextDouble()).ToArray() }
Microsoft.ML.TimeSeries (4)
SeasonalityDetector.cs (1)
86FftUtils.ComputeForwardFft(inputRe, Enumerable.Repeat(0.0, length).ToArray(), fftRe, fftIm, length);
SequentialTransformerBase.cs (1)
605return Enumerable.Empty<DataViewSchema.Column>();
SrCnnAnomalyDetectionBase.cs (2)
181FftUtils.ComputeForwardFft(backAddList.ToArray(), Enumerable.Repeat(0.0f, length).ToArray(), fftRe, fftIm, length); 255backAddArray.AddRange(Enumerable.Repeat(predictedValue, Parent.BackAddWindowSize));
Microsoft.ML.TimeSeries.Tests (2)
TimeSeries.cs (1)
81File.WriteAllLines(pathData, Enumerable.Repeat("0", 50));
TimeSeriesDirectApi.cs (1)
1067var input = Enumerable.Range(0, 100).Select(x =>
Microsoft.ML.Tokenizers (6)
Model\BertTokenizer.cs (2)
429mask.AddRange(Enumerable.Repeat(0, tokenIds.Count())); 433mask.AddRange(Enumerable.Repeat(0, additionalTokenIds.Count()));
Utils\ByteToUnicodeEncoding.cs (4)
19var byteToUnicodeMapping = Enumerable.Range('!', '~' - '!' + 1) 20.Concat(Enumerable.Range('¡', '¬' - '¡' + 1)) 21.Concat(Enumerable.Range('®', 'ÿ' - '®' + 1)) 26foreach (var b in Enumerable.Range(0, numChars))
Microsoft.ML.Tokenizers.Tests (2)
TokenizerTests.cs (2)
25string.Concat(Enumerable.Repeat("abcdefghijklmnopqrstuvwxyz", 100)), 26tokenizer.Decode(Enumerable.Repeat("abcdefghijklmnopqrstuvwxyz", 100).SelectMany(s => s.Select(c => c - 'a'))));
Microsoft.ML.TorchSharp (9)
NasBert\Models\NasBertEncoder.cs (3)
106var layers = Enumerable.Range(0, numEncoderLayers) 124var hiddenTransferList = Enumerable.Range(0, HiddenSizePerBlock.Count) 259var hiddenSizesPerBlock = Enumerable.Range(i * blockPerLayer, blockPerLayer)
NasBert\Modules\TransformerCell.cs (1)
52var operations = Enumerable.Range(0, SearchSpace.NumLayerChoices)
Roberta\Models\RobertaModel.cs (4)
43Positions = Enumerable.Range(0, options.MaxSequenceLength).ToArray(); 44Zeros = Enumerable.Repeat(0, options.MaxSequenceLength).ToArray(); 45Ones = Enumerable.Repeat(1, options.MaxSequenceLength).ToArray(); 46NegBillionPad = Enumerable.Repeat(negBillion, options.MaxSequenceLength).ToArray();
Roberta\Modules\Encoder.cs (1)
27layer = new ModuleList<Layer>(Enumerable.Range(0, numLayers)
Microsoft.ML.Transforms (15)
CustomMappingTransformer.cs (3)
135if (!Enumerable.Range(0, result.Length).Any(activeOutput)) 179if (Enumerable.Range(0, _parent.AddedSchema.Columns.Length).Any(activeOutput)) 192return Enumerable.Range(0, dstRow.Schema.Count).Select(x => new DataViewSchema.DetachedColumn(dstRow.Schema[x])).ToArray();
HashJoiningTransform.cs (1)
380return Enumerable.Range(0, srcSlotCount).Select(v => new[] { v }).ToArray();
MissingValueReplacing.cs (2)
890node.AddAttribute("imputed_value_floats", Enumerable.Repeat((float)_parent._repValues[iinfo], 1)); 896node.AddAttribute("imputed_value_floats", Enumerable.Repeat((float)_parent._repValues[iinfo], 1));
PermutationFeatureImportance.cs (2)
63var workingFeatureIndices = Enumerable.Range(0, numSlots).ToList(); 126workingFeatureIndices.AddRange(Enumerable.Range(0, numSlots));
StatefulCustomMappingTransformer.cs (1)
122var cols = Enumerable.Range(0, dstRow.Schema.Count).Select(x => new DataViewSchema.DetachedColumn(dstRow.Schema[x])).ToArray();
Text\NgramTransform.cs (1)
625allNGramIds = Enumerable.Concat(allNGramIds, ngramIds[i]);
Text\TokenizingByCharacters.cs (2)
260IEnumerable<string> charStrings = Enumerable.Range(0, 65535).Select(x => ((char)x).ToString()); 261IEnumerable<long> charValues = Enumerable.Range(0, 65535).Select(x => Convert.ToInt64(x));
Text\WordEmbeddingsExtractor.cs (3)
427tensorD.AddRange(Enumerable.Repeat(0.0f, _parent._currentVocab.Dimension)); 429tensorD.AddRange(Enumerable.Repeat(float.MaxValue, _parent._currentVocab.Dimension)); 431tensorD.AddRange(Enumerable.Repeat(float.MinValue, _parent._currentVocab.Dimension));
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
949return col => Enumerable.Range(0, _parent._outputs.Length).Any(i => activeOutput(i)) && _inputColIndices.Any(i => i == col);
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,
Microsoft.VisualBasic.Tests (6)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (6)
105var tasks = Enumerable.Range(0, n).Select(i => Task.Factory.StartNew(() => 133string[][] sentArgs = Enumerable.Range(0, n).Select(i => Enumerable.Range(0, i).Select(i => i.ToString()).ToArray()).ToArray(); 154string[][] sentArgs = Enumerable.Range(0, n).Select(i => Enumerable.Range(0, i).Select(i => i.ToString()).ToArray()).ToArray(); 157var tasks = Enumerable.Range(0, n).Select(i => Task.Factory.StartNew(() => { Assert.True(SendSecondInstanceArgs(pipeName, SendTimeout, sentArgs[i])); }, cancellationToken: default, creationOptions: default, scheduler: TaskScheduler.Default)).ToArray();
Microsoft.VisualStudio.LanguageServices (2)
NavigateTo\RoslynNavigateToSearchCallback.cs (1)
71var perProviderItemPriority = float.MaxValue - Enumerable.Sum(result.Matches.Select(m => (int)m.Kind));
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
358if (!Enumerable.SequenceEqual(folderNames, newFolderNames))
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
PersistentStorage\AbstractPersistentStorageTests.cs (6)
55private static readonly string MediumData1 = string.Join(",", Enumerable.Repeat(SmallData1, MediumSize / SmallData1.Length)); 56private static readonly string MediumData2 = string.Join(",", Enumerable.Repeat(SmallData2, MediumSize / SmallData2.Length)); 58private static readonly string LargeData1 = string.Join(",", Enumerable.Repeat(SmallData1, LargeSize / SmallData1.Length)); 59private static readonly string LargeData2 = string.Join(",", Enumerable.Repeat(SmallData2, LargeSize / SmallData2.Length)); 61private static readonly string ExtraLargeData1 = string.Join(",", Enumerable.Repeat(SmallData1, ExtraLargeSize / SmallData1.Length)); 62private static readonly string ExtraLargeData2 = string.Join(",", Enumerable.Repeat(SmallData2, ExtraLargeSize / SmallData2.Length));
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 (2)
ReadOnlyEmptyDictionary.cs (1)
259return Enumerable.Empty<KeyValuePair<K, V>>().GetEnumerator();
TerminalLogger\Project.cs (1)
115Enumerable.Empty<BuildMessage>() :
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>())
Shared.Tests (2)
JsonSchemaExporter\TestTypes.cs (2)
1099public IEnumerator<int> GetEnumerator() => Enumerable.Repeat(BaseValue, 1).GetEnumerator(); 1111public IEnumerator<KeyValuePair<string, int>> GetEnumerator() => Enumerable.Repeat(new KeyValuePair<string, int>(nameof(BaseValue), BaseValue), 1).GetEnumerator();
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
934var 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)
570Enumerable.Empty<T>().GetEnumerator() :
System\Collections\Immutable\ImmutableList_1.cs (1)
900Enumerable.Empty<T>().GetEnumerator() :
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
944return 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)
699Enumerable.Empty<KeyValuePair<TKey, TValue>>().GetEnumerator() :
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (2)
136get { return Linq.Enumerable.Select(this, p => p.Key); } 144get { return Linq.Enumerable.Select(this, p => p.Value); }
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 (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)
142if (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))] 934[DynamicDependency("Index`1", typeof(Enumerable))] 946[DynamicDependency("Intersect`1", typeof(Enumerable))] 959[DynamicDependency("Intersect`1", typeof(Enumerable))] 982[DynamicDependency("IntersectBy`2", typeof(Enumerable))] 1007[DynamicDependency("IntersectBy`2", typeof(Enumerable))] 1024[DynamicDependency("Except`1", typeof(Enumerable))] 1037[DynamicDependency("Except`1", typeof(Enumerable))] 1061[DynamicDependency("ExceptBy`2", typeof(Enumerable))] 1087[DynamicDependency("ExceptBy`2", typeof(Enumerable))] 1104[DynamicDependency("First`1", typeof(Enumerable))] 1116[DynamicDependency("First`1", typeof(Enumerable))] 1129[DynamicDependency("FirstOrDefault`1", typeof(Enumerable))] 1147[DynamicDependency("FirstOrDefault`1", typeof(Enumerable))] 1159[DynamicDependency("FirstOrDefault`1", typeof(Enumerable))] 1179[DynamicDependency("FirstOrDefault`1", typeof(Enumerable))] 1192[DynamicDependency("Last`1", typeof(Enumerable))] 1204[DynamicDependency("Last`1", typeof(Enumerable))] 1217[DynamicDependency("LastOrDefault`1", typeof(Enumerable))] 1235[DynamicDependency("LastOrDefault`1", typeof(Enumerable))] 1247[DynamicDependency("LastOrDefault`1", typeof(Enumerable))] 1267[DynamicDependency("LastOrDefault`1", typeof(Enumerable))] 1281[DynamicDependency("Single`1", typeof(Enumerable))] 1293[DynamicDependency("Single`1", typeof(Enumerable))] 1306[DynamicDependency("SingleOrDefault`1", typeof(Enumerable))] 1325[DynamicDependency("SingleOrDefault`1", typeof(Enumerable))] 1337[DynamicDependency("SingleOrDefault`1", typeof(Enumerable))] 1358[DynamicDependency("SingleOrDefault`1", typeof(Enumerable))] 1371[DynamicDependency("ElementAt`1", typeof(Enumerable))] 1393[DynamicDependency("ElementAt`1", typeof(Enumerable))] 1408[DynamicDependency("ElementAtOrDefault`1", typeof(Enumerable))] 1426[DynamicDependency("ElementAtOrDefault`1", typeof(Enumerable))] 1438[DynamicDependency("DefaultIfEmpty`1", typeof(Enumerable))] 1450[DynamicDependency("DefaultIfEmpty`1", typeof(Enumerable))] 1462[DynamicDependency("Contains`1", typeof(Enumerable))] 1474[DynamicDependency("Contains`1", typeof(Enumerable))] 1486[DynamicDependency("Reverse`1", typeof(Enumerable))] 1498[DynamicDependency("SequenceEqual`1", typeof(Enumerable))] 1511[DynamicDependency("SequenceEqual`1", typeof(Enumerable))] 1526[DynamicDependency("Any`1", typeof(Enumerable))] 1538[DynamicDependency("Any`1", typeof(Enumerable))] 1551[DynamicDependency("All`1", typeof(Enumerable))] 1564[DynamicDependency("Count`1", typeof(Enumerable))] 1576[DynamicDependency("Count`1", typeof(Enumerable))] 1597[DynamicDependency("CountBy`2", typeof(Enumerable))] 1610[DynamicDependency("LongCount`1", typeof(Enumerable))] 1622[DynamicDependency("LongCount`1", typeof(Enumerable))] 1635[DynamicDependency("Min`1", typeof(Enumerable))] 1654[DynamicDependency("Min`1", typeof(Enumerable))] 1667[DynamicDependency("Min`2", typeof(Enumerable))] 1688[DynamicDependency("MinBy`2", typeof(Enumerable))] 1711[DynamicDependency("MinBy`2", typeof(Enumerable))] 1726[DynamicDependency("Max`1", typeof(Enumerable))] 1744[DynamicDependency("Max`1", typeof(Enumerable))] 1757[DynamicDependency("Max`2", typeof(Enumerable))] 1778[DynamicDependency("MaxBy`2", typeof(Enumerable))] 1801[DynamicDependency("MaxBy`2", typeof(Enumerable))] 1816[DynamicDependency("Sum", typeof(Enumerable))] 1828[DynamicDependency("Sum", typeof(Enumerable))] 1840[DynamicDependency("Sum", typeof(Enumerable))] 1852[DynamicDependency("Sum", typeof(Enumerable))] 1864[DynamicDependency("Sum", typeof(Enumerable))] 1876[DynamicDependency("Sum", typeof(Enumerable))] 1888[DynamicDependency("Sum", typeof(Enumerable))] 1900[DynamicDependency("Sum", typeof(Enumerable))] 1912[DynamicDependency("Sum", typeof(Enumerable))] 1924[DynamicDependency("Sum", typeof(Enumerable))] 1936[DynamicDependency("Sum`1", typeof(Enumerable))] 1949[DynamicDependency("Sum`1", typeof(Enumerable))] 1962[DynamicDependency("Sum`1", typeof(Enumerable))] 1975[DynamicDependency("Sum`1", typeof(Enumerable))] 1988[DynamicDependency("Sum`1", typeof(Enumerable))] 2001[DynamicDependency("Sum`1", typeof(Enumerable))] 2014[DynamicDependency("Sum`1", typeof(Enumerable))] 2027[DynamicDependency("Sum`1", typeof(Enumerable))] 2040[DynamicDependency("Sum`1", typeof(Enumerable))] 2053[DynamicDependency("Sum`1", typeof(Enumerable))] 2066[DynamicDependency("Average", typeof(Enumerable))] 2078[DynamicDependency("Average", typeof(Enumerable))] 2090[DynamicDependency("Average", typeof(Enumerable))] 2102[DynamicDependency("Average", typeof(Enumerable))] 2114[DynamicDependency("Average", typeof(Enumerable))] 2126[DynamicDependency("Average", typeof(Enumerable))] 2138[DynamicDependency("Average", typeof(Enumerable))] 2150[DynamicDependency("Average", typeof(Enumerable))] 2162[DynamicDependency("Average", typeof(Enumerable))] 2174[DynamicDependency("Average", typeof(Enumerable))] 2186[DynamicDependency("Average`1", typeof(Enumerable))] 2199[DynamicDependency("Average`1", typeof(Enumerable))] 2212[DynamicDependency("Average`1", typeof(Enumerable))] 2225[DynamicDependency("Average`1", typeof(Enumerable))] 2238[DynamicDependency("Average`1", typeof(Enumerable))] 2251[DynamicDependency("Average`1", typeof(Enumerable))] 2264[DynamicDependency("Average`1", typeof(Enumerable))] 2277[DynamicDependency("Average`1", typeof(Enumerable))] 2290[DynamicDependency("Average`1", typeof(Enumerable))] 2303[DynamicDependency("Average`1", typeof(Enumerable))] 2316[DynamicDependency("Aggregate`1", typeof(Enumerable))] 2329[DynamicDependency("Aggregate`2", typeof(Enumerable))] 2342[DynamicDependency("Aggregate`3", typeof(Enumerable))] 2372[DynamicDependency("AggregateBy`3", typeof(Enumerable))] 2402[DynamicDependency("AggregateBy`3", typeof(Enumerable))] 2417[DynamicDependency("SkipLast`1", typeof(Enumerable))] 2430[DynamicDependency("TakeLast`1", typeof(Enumerable))] 2442[DynamicDependency("Append`1", typeof(Enumerable))] 2454[DynamicDependency("Prepend`1", typeof(Enumerable))]
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
290return Enumerable.Empty<Pkcs12SafeBag>();
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
4867string.Concat(from i in Enumerable.Range(0, count)
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\ChainedPartitionedRateLimiter.cs (1)
189return Enumerable.Empty<string>();
System.Windows.Forms.Tests (23)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (1)
1751listView.Items.AddRange(Enumerable.Range(0, 11).Select(i => new ListViewItem()).ToArray());
System\Windows\Forms\ColorDialogTests.cs (15)
19Assert.Equal(Enumerable.Repeat(0x00FFFFFF, 16).ToArray(), dialog.CustomColors); 190yield return new object[] { null, Enumerable.Repeat(0x00FFFFFF, 16).ToArray() }; 191yield return new object[] { Array.Empty<int>(), Enumerable.Repeat(0x00FFFFFF, 16).ToArray() }; 192yield return new object[] { new int[] { 1, 2, 3 }, new int[] { 1, 2, 3 }.Concat(Enumerable.Repeat(0x00FFFFFF, 13)).ToArray() }; 193yield return new object[] { Enumerable.Repeat(0, 16).ToArray(), Enumerable.Repeat(0, 16).ToArray() }; 194yield return new object[] { Enumerable.Repeat(unchecked((int)0xFFFFFFFF), 16).ToArray(), Enumerable.Repeat(unchecked((int)0xFFFFFFFF), 16).ToArray() }; 195yield return new object[] { Enumerable.Repeat(1, 16).ToArray(), Enumerable.Repeat(1, 16).ToArray() }; 196yield return new object[] { Enumerable.Repeat(1, 20).ToArray(), Enumerable.Repeat(1, 16).ToArray() }; 242int[] value = Enumerable.Repeat(1, 16).ToArray(); 248Assert.Equal(Enumerable.Repeat(1, 16), dialog.CustomColors); 340Assert.Equal(Enumerable.Repeat(0x00FFFFFF, 16).ToArray(), dialog.CustomColors);
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (1)
102comboBox.Items.AddRange(Enumerable.Range(0, 11).Cast<object>().ToArray());
System\Windows\Forms\ImageList.ImageCollectionTests.cs (2)
914Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.Keys.Cast<string>()); 932Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.Keys.Cast<string>());
System\Windows\Forms\RichTextBoxTests.cs (4)
6215yield return new object[] { PFM.TABSTOPS, 32, Enumerable.Repeat(900, 32).ToArray(), Enumerable.Repeat(60, 32).ToArray() }; 6791var chars = Enumerable.Range(0x0008, /* 0x0008 to 0x007F */ 0x007F - 0x0008 + 1).Union( 6792Enumerable.Range(0x2000, /* 0x2000 to 0x2069 */ 0x2069 - 0x2000 + 1));
TestingAppHost1.MyWebApp (1)
Program.cs (1)
25var forecast = Enumerable.Range(1, 5).Select(index =>
Wasm.Performance.TestApp (1)
Person.cs (1)
28Subordinates = Enumerable.Range(0, thisDepth < totalDepth ? numDescendantsPerNode : 0)
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>();