1068 references to Range
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
DaprServiceB (1)
Program.cs (1)
26var forecast = Enumerable.Range(1, 5).Select(index =>
dotnet-user-jwts (1)
Helpers\ConsoleTable.cs (1)
89var formatRow = Enumerable.Range(0, _columns.Count)
HostedBlazorWebassemblyApp.Server (1)
Data\WeatherForecastService.cs (1)
21return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast
HttpStress (3)
Program.cs (3)
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 () =>
InMemory.FunctionalTests (1)
RequestHeaderLimitsTests.cs (1)
157.Range(0, count - 1)
Interop.FunctionalTests (1)
Http2\Http2RequestTests.cs (1)
233var randomBytes = Enumerable.Range(1, DataLength).Select(i => (byte)((i % 10) + 48)).ToArray();
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.Components.Endpoints.Tests (5)
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)
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\CircuitIdFactoryTest.cs (1)
31var secrets = Enumerable.Range(0, 100).Select(i => factory.CreateCircuitId()).Select(s => s.Secret).ToArray();
Microsoft.AspNetCore.Components.Tests (1)
CascadingParameterTest.cs (1)
845var components = Enumerable.Range(0, numSubscribers).Select(_ => new SimpleSubscriberComponent()).ToArray();
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionDetailsProviderTest.cs (1)
276return Enumerable.Range(start, count).Select(i => string.Format(CultureInfo.InvariantCulture, "Line{0}", i));
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
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.Mvc.Core (1)
ModelBinding\Binders\CollectionModelBinder.cs (1)
338.Range(0, limit)
Microsoft.AspNetCore.Mvc.Core.Test (5)
Formatters\SystemTextJsonOutputFormatterTest.cs (2)
152foreach (var i in Enumerable.Range(0, 9000)) 339foreach (var i in Enumerable.Range(0, 9000))
Infrastructure\JsonResultExecutorTestBase.cs (1)
272var model = Enumerable.Range(0, 1000).Select(p => new TestModel { Property = new string('a', 5000) }).ToArray();
src\Shared\ResultsTests\FileStreamResultTestBase.cs (2)
377var originalBytes = Enumerable.Range(0, 0x1234) 402var originalBytes = Enumerable.Range(0, 0x1234)
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.TagHelpers.Test (3)
SelectTagHelperTest.cs (3)
97var multiItems = new MultiSelectList(Enumerable.Range(0, 5)); 98var selectItems = new SelectList(Enumerable.Range(0, 5)); 367var selectItems = new SelectList(Enumerable.Range(0, 5));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (7)
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"));
Rendering\TagBuilderTest.cs (1)
126foreach (char c in Enumerable.Range(char.MinValue, char.MaxValue))
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.Routing.Tests (1)
Matching\CandidateSetTest.cs (1)
353var candidateSet = new CandidateSet(endpoints, values, Enumerable.Range(0, count).ToArray());
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)
1109.Range(0, count)
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.Shared.Tests (1)
runtime\Http2\HPackDecoderTest.cs (1)
50private static readonly string _literalHeaderNameString = string.Concat(Enumerable.Range(0, 4100).Select(c => (char)('a' + (c % 26))));
Microsoft.AspNetCore.SignalR.Common.Tests (13)
Internal\Formatters\BinaryMessageFormatterTests.cs (1)
152Enumerable.Range(0, size).Select(n => (byte)(n & 0xff)).ToArray();
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 (7)
FileBufferingReadStreamTests.cs (7)
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();
Microsoft.Build (1)
Instance\ProjectItemInstance.cs (1)
1790Enumerable.Range(0, count).Select(_ =>
Microsoft.Build.Engine.UnitTests (6)
BackEnd\NodePackets_Tests.cs (1)
186new TaskItemData("ItemSpec2", Enumerable.Range(1, 3).ToDictionary(i => i.ToString(), i => i.ToString() + "value"))
BuildEventArgsSerialization_Tests.cs (1)
725new TaskItemData("ItemSpec2", Enumerable.Range(1,3).ToDictionary(i => i.ToString(), i => i.ToString() + "value"))
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.Tasks.Core (1)
NativeMethods.cs (1)
1411Enumerable.Range(0, 16)
Microsoft.Build.Tasks.UnitTests (1)
Hash_Tests.cs (1)
94Enumerable.Range(0, maxInputSize)
Microsoft.CodeAnalysis.CodeStyle (2)
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));
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder_Query.cs (1)
321argsToParams.AddRange(Enumerable.Range(0, n));
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 (11)
CodeGen\CodeGenCapturing.cs (1)
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 (5)
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), @"
PDB\PDBTests.cs (1)
430var locals = Enumerable.Range(0, 14_000)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
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)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
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));
src\Analyzers\CSharp\Tests\AbstractBuiltInCodeStyleDiagnosticAnalyzer\AbstractBuiltInCodeStyleDiagnosticAnalyzerTests.cs (1)
21var ids = Enumerable.Range(10, 20).Select(item => "IDE_" + item);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests.cs (1)
720Enumerable.Range(0, nTasks).AsParallel()
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ObjectFormatterTests.cs (1)
504obj = Enumerable.Range(0, 10).Where(i =>
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 (4)
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\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 (5)
Parsing\CollectionExpressionParsingTests.cs (1)
17096var text = $"[{string.Join(", ", Enumerable.Range(1, count).Select(i => $"A{i}"))}]";
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"));
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
256Enumerable.Range(0, _snapshotData.InitialSortedItemList.Count)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
Tagging\AsynchronousTaggerTests.cs (2)
72.Range(0, tagsProduced) 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))]); 97var (tree, buffer) = CreateTree(new string('c', 100), [.. Enumerable.Range(0, count: 100).Select(s => new Span(s, 1))]); 112var (tree, buffer) = CreateTree(new string('c', 100), [.. Enumerable.Range(0, count: 100).Select(s => new Span(s, 1))]); 126var (tree, buffer) = CreateTree(new string('c', 100), [.. Enumerable.Range(0, count: 100).Select(s => new Span(s, 1))]); 140var (tree, buffer) = CreateTree(new string('c', 100), [.. Enumerable.Range(0, count: 100).Select(s => new Span(s, 1))]);
Microsoft.CodeAnalysis.Features (6)
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
91var candidates = Enumerable.Range(1, parts.Length)
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)
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));
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
4364var tasks = Enumerable.Range(0, 10).Select(async i =>
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
SpellCheck\SpellCheckTests.cs (1)
75var markup = string.Join(Environment.NewLine, Enumerable.Range(0, 5500).Select(v =>
Microsoft.CodeAnalysis.UnitTests (144)
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\SegmentedHashSet_Generic_Tests`1.cs (1)
100SegmentedHashSet<T> hashSetFromDuplicates = new SegmentedHashSet<T>(Enumerable.Range(0, 40).SelectMany(i => items).ToArray());
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.nonnetstandard.cs (3)
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()); 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 (3)
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; }));
Collections\ImmutableSetTest.nonnetstandard.cs (4)
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());
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\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 (5)
239Assert.All(Enumerable.Range(0, count), index => result = list[index]); 685Assert.All(Enumerable.Range(0, count), index => 721Assert.All(Enumerable.Range(0, count), (index => 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.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 (3)
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);
Text\SourceTextTests.cs (2)
434from start in Enumerable.Range(0, totalLength) 435from length in Enumerable.Range(0, totalLength - start)
Text\TextChangeTests.cs (1)
965var originalText = SourceText.From(string.Join("", Enumerable.Range(0, random.Next(10))));
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Syntax\SyntaxAnnotationTests.vb (2)
238Dim annotations = New List(Of SyntaxAnnotation)(Enumerable.Range(0, 3).Select(Function(x) 357Dim annotations = New List(Of SyntaxAnnotation)(Enumerable.Range(0, 10).Select(Function(s) New SyntaxAnnotation()))
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
ChecksumTests.cs (1)
136var checksums = Enumerable.Range(0, max).Select(i => Checksum.Create($"{i}")).ToArray();
SolutionTests\SolutionTests.cs (1)
2924var projectIds = Enumerable.Range(0, 5).Select(i => ProjectId.CreateNewId()).ToArray();
UtilityTest\IntervalTreeTests.cs (3)
413var tree = ImmutableIntervalTree<int>.CreateFromUnsorted(new Int32IntervalIntrospector(), [.. Enumerable.Range(1, i)]); 416AssertEx.Equal(tree, Enumerable.Range(1, i)); 438var allInts = Enumerable.Range(1, totalCount + j);
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 (564)
ArrowIntegrationTests.cs (11)
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()) 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()) 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 (11)
19DataFrameColumn dataFrameColumn1 = new Int32DataFrameColumn("Int1", Enumerable.Range(0, length).Select(x => x)); 20DataFrameColumn dataFrameColumn2 = new Int32DataFrameColumn("Int2", Enumerable.Range(10, length).Select(x => x)); 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);
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));
Microsoft.DotNet.Build.Tasks.Workloads (1)
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))));
Microsoft.DotNet.XUnitAssert.Tests (2)
AsyncCollectionAssertsTests.cs (1)
1073 var enumerator = new SpyEnumerator<int>(Enumerable.Range(0, 1).ToAsyncEnumerable());
CollectionAssertsTests.cs (1)
1636 var enumerator = new SpyEnumerator<int>(Enumerable.Range(0, 1));
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
498from i in Enumerable.Range(0, functionCount)
Microsoft.Extensions.AI.Abstractions.Tests (4)
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(); 51.Range(0, count) 52.Select(i => new Embedding<float>(Enumerable.Range(i, 4).Select(i => (float)i).ToArray()))
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.Diagnostics.ResourceMonitoring.Tests (4)
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();
Linux\OSFileSystemTests.cs (1)
205var expectedLines = Enumerable.Range(0, count).Select(i => $"Line {i}");
Microsoft.Extensions.Http.Resilience.Tests (1)
Internal\RandomizerTest.cs (1)
18var actions = Enumerable.Range(0, 1000).Select(_ =>
Microsoft.Extensions.Options.Contextual.Tests (1)
AcceptanceTests.cs (1)
58return Enumerable.Range(1, options.ForecastDays).Select(index => new WeatherForecast
Microsoft.Interop.SourceGeneration (1)
Marshalling\GeneratorDiagnostic.cs (1)
57DiagnosticProperties.Add(WellKnownDiagnosticTags.Unnecessary, $"[{string.Join(",", Enumerable.Range(0, UnnecessaryDataLocations.Length))}]"),
Microsoft.ML.AutoML (8)
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 (4)
36return Enumerable.Range(0, array.Length).OrderBy(index => array[index]).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.Tests (3)
GridSearchTunerTests.cs (1)
48foreach (var i in Enumerable.Range(0, steps * 2))
TrialResultManagerTest.cs (1)
35var trialResults = Enumerable.Range(0, 10)
TunerTests.cs (1)
212var randomLosses = Enumerable.Range(0, 100).Select(i => i * 0.1);
Microsoft.ML.Core (6)
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);
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 (21)
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\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\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]))
Transforms\KeyToValue.cs (1)
528var keys = Array.ConvertAll<int, long>(Enumerable.Range(1, _values.Length).ToArray(), item => Convert.ToInt64(item));
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.FastTree (30)
Dataset\Dataset.cs (9)
160_maxDocsPerQuery = Enumerable.Range(0, NumQueries).Select(NumDocsInQuery).Max(); 273Dataset[] datasets = Enumerable.Range(0, numParts).Select(p => datasetSkeletonPart[p] == null ? 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 (1)
37uint[] valueMap = Enumerable.Range(0, ((int)maxLab) + 1).Select(x => (uint)x + 5).ToArray();
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 (1)
482var binIndices = Enumerable.Range(0, numInternalNodes).ToArray();
SumupPerformanceCommand.cs (1)
234return Enumerable.Range(0, _len);
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\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);
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\ThreadTaskManager.cs (1)
82Enumerable.Range(0, maxArgument)
Microsoft.ML.GenAI.Core (1)
Trainer\CausalLMDataset.cs (1)
86var enumerable = Enumerable.Range(0, labelIds.Count)
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 (5)
ParquetLoader.cs (3)
427var allColumns = Enumerable.Range(0, Schema.Count).ToArray(); 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.Samples (5)
Dynamic\TensorFlow\ImageClassification.cs (2)
101var image1 = Enumerable.Range(0, inputSize).Select( 104var image2 = Enumerable.Range(0, inputSize).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\TimeSeries\DetectSeasonality.cs (1)
18var seasonalData = Enumerable.Range(0, 100).Select(x => new TimeSeriesData(Math.Sin(2 * Math.PI + 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 (1)
Tuner\GridSearchTuner.cs (1)
24.Select(x => Enumerable.Range(0, x).Select(i => i * 1.0 / x).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 (2)
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 (1)
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 (11)
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();
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
488return Enumerable.Range(0, 500)
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.Tests (1)
TimeSeriesDirectApi.cs (1)
1067var input = Enumerable.Range(0, 100).Select(x =>
Microsoft.ML.Tokenizers (4)
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.TorchSharp (6)
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 (1)
43Positions = Enumerable.Range(0, options.MaxSequenceLength).ToArray();
Roberta\Modules\Encoder.cs (1)
27layer = new ModuleList<Layer>(Enumerable.Range(0, numLayers)
Microsoft.ML.Transforms (8)
CustomMappingTransformer.cs (2)
135if (!Enumerable.Range(0, result.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();
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\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));
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.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();
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
4867string.Concat(from i in Enumerable.Range(0, count)
System.Windows.Forms.Tests (4)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (1)
1751listView.Items.AddRange(Enumerable.Range(0, 11).Select(i => new ListViewItem()).ToArray());
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (1)
102comboBox.Items.AddRange(Enumerable.Range(0, 11).Cast<object>().ToArray());
System\Windows\Forms\RichTextBoxTests.cs (2)
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)
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();