1067 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)
175diff1.VerifyPdb(Enumerable.Range(0x06000001, 0x20), @" 2363diff1.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)).ToArray()); 97var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray()); 112var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray()); 126var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray()); 140var (tree, buffer) = CreateTree(new string('c', 100), Enumerable.Range(0, count: 100).Select(s => new Span(s, 1)).ToArray());
Microsoft.CodeAnalysis.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)
4279var 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(), new(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)
23.Append("Column1", false, col => col.Int32(array => array.AppendRange(Enumerable.Range(0, 10)))) 25valueBuffer: new ArrowBuffer.Builder<int>().AppendRange(Enumerable.Range(0, 10)).Build(), 31valueBuffer: new ArrowBuffer.Builder<int>().AppendRange(Enumerable.Range(0, 10)).Build(), 42.Append("StringDataFrameColumn", false, new StringArray.Builder().AppendRange(Enumerable.Range(0, 10).Select(x => x.ToString())).Build()) 72.Append(prependColumnNamesWith + "Column1", false, col => col.Int32(array => array.AppendRange(Enumerable.Range(0, 10)))) 74valueBuffer: new ArrowBuffer.Builder<int>().AppendRange(Enumerable.Range(0, 10)).Build(), 80valueBuffer: new ArrowBuffer.Builder<int>().AppendRange(Enumerable.Range(0, 10)).Build(), 91.Append(prependColumnNamesWith + "StringDataFrameColumn", false, new StringArray.Builder().AppendRange(Enumerable.Range(0, 10).Select(x => x.ToString())).Build()) 164.Append("Column1", false, col => col.Int32(array => array.AppendRange(Enumerable.Range(0, 10)))).Build(); 180.Append("EmptyNullBitMapColumn", false, col => col.Int32(array => array.AppendRange(Enumerable.Range(0, 10)))) 215Int32Array int32 = new Int32Array.Builder().AppendRange(Enumerable.Range(0, 520)).Build();
DataFrameColumn.BinaryOperationTests.cs (495)
21var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 23var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 26var verify = Enumerable.Range(1, 10).Select(x => (int)(2 * x)); 34var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 36var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 39var verify = Enumerable.Range(1, 10).Select(x => (decimal)(2 * x)); 47var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 49var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 52var verify = Enumerable.Range(1, 10).Select(x => (double)(2 * x)); 60var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 62var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 65var verify = Enumerable.Range(1, 10).Select(x => (float)(2 * x)); 73var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 75var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 78var verify = Enumerable.Range(1, 10).Select(x => (int)(2 * x)); 86var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 88var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 91var verify = Enumerable.Range(1, 10).Select(x => (long)(2 * x)); 99var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 101var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 104var verify = Enumerable.Range(1, 10).Select(x => (int)(2 * x)); 112var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 114var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 117var verify = Enumerable.Range(1, 10).Select(x => (int)(2 * x)); 125var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 127var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 130var verify = Enumerable.Range(1, 10).Select(x => (uint)(2 * x)); 138var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 140var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 143var verify = Enumerable.Range(1, 10).Select(x => (ulong)(2 * x)); 151var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 153var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 156var verify = Enumerable.Range(1, 10).Select(x => (int)(2 * x)); 164var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 168var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 176var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 180var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x + (decimal)value)); 188var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 192var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x + (double)value)); 200var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 204var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x + (float)value)); 212var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 216var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 224var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 228var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x + (long)value)); 236var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 240var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 248var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 252var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 260var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 264var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x + (uint)value)); 272var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 276var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x + (ulong)value)); 284var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 288var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 296var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 300var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 308var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 312var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x + (decimal)value)); 320var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 324var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x + (double)value)); 332var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 336var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x + (float)value)); 344var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 348var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 356var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 360var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x + (long)value)); 368var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 372var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 380var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 384var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 392var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 396var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x + (uint)value)); 404var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 408var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x + (ulong)value)); 416var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 420var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x + (int)value)); 428var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 430var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 433var verify = Enumerable.Range(1, 10).Select(x => (int)0); 441var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 443var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 446var verify = Enumerable.Range(1, 10).Select(x => (decimal)0); 454var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 456var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 459var verify = Enumerable.Range(1, 10).Select(x => (double)0); 467var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 469var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 472var verify = Enumerable.Range(1, 10).Select(x => (float)0); 480var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 482var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 485var verify = Enumerable.Range(1, 10).Select(x => (int)0); 493var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 495var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 498var verify = Enumerable.Range(1, 10).Select(x => (long)0); 506var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 508var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 511var verify = Enumerable.Range(1, 10).Select(x => (int)0); 519var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 521var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 524var verify = Enumerable.Range(1, 10).Select(x => (int)0); 532var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 534var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 537var verify = Enumerable.Range(1, 10).Select(x => (uint)0); 545var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 547var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 550var verify = Enumerable.Range(1, 10).Select(x => (ulong)0); 558var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 560var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 563var verify = Enumerable.Range(1, 10).Select(x => (int)0); 571var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 575var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x - (int)value)); 583var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 587var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x - (decimal)value)); 595var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 599var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x - (double)value)); 607var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 611var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x - (float)value)); 619var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 623var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x - (int)value)); 631var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 635var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x - (long)value)); 643var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 647var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x - (int)value)); 655var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 659var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x - (int)value)); 667var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 671var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x - (uint)value)); 679var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 683var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x - (ulong)value)); 691var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 695var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x - (int)value)); 703var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 707var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value - (int)x)); 715var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 719var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)value - (decimal)x)); 727var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 731var verify = Enumerable.Range(1, 10).Select(x => (double)((double)value - (double)x)); 739var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 743var verify = Enumerable.Range(1, 10).Select(x => (float)((float)value - (float)x)); 751var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 755var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value - (int)x)); 763var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 767var verify = Enumerable.Range(1, 10).Select(x => (long)((long)value - (long)x)); 775var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 779var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value - (int)x)); 787var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 791var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value - (int)x)); 799var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 803var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)value - (uint)x)); 811var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 815var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)value - (ulong)x)); 823var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 827var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value - (int)x)); 835var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 837var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 840var verify = Enumerable.Range(1, 10).Select(x => (int)(x * x)); 848var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 850var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 853var verify = Enumerable.Range(1, 10).Select(x => (decimal)(x * x)); 861var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 863var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 866var verify = Enumerable.Range(1, 10).Select(x => (double)(x * x)); 874var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 876var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 879var verify = Enumerable.Range(1, 10).Select(x => (float)(x * x)); 887var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 889var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 892var verify = Enumerable.Range(1, 10).Select(x => (int)(x * x)); 900var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 902var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 905var verify = Enumerable.Range(1, 10).Select(x => (long)(x * x)); 913var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 915var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 918var verify = Enumerable.Range(1, 10).Select(x => (int)(x * x)); 926var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 928var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 931var verify = Enumerable.Range(1, 10).Select(x => (int)(x * x)); 939var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 941var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 944var verify = Enumerable.Range(1, 10).Select(x => (uint)(x * x)); 952var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 954var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 957var verify = Enumerable.Range(1, 10).Select(x => (ulong)(x * x)); 965var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 967var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 970var verify = Enumerable.Range(1, 10).Select(x => (int)(x * x)); 978var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 982var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 990var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 994var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x * (decimal)value)); 1002var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1006var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x * (double)value)); 1014var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1018var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x * (float)value)); 1026var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1030var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1038var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1042var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x * (long)value)); 1050var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1054var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1062var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1066var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1074var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1078var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x * (uint)value)); 1086var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1090var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x * (ulong)value)); 1098var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1102var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1110var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1114var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1122var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1126var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x * (decimal)value)); 1134var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1138var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x * (double)value)); 1146var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1150var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x * (float)value)); 1158var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1162var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1170var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1174var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x * (long)value)); 1182var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1186var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1194var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1198var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1206var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1210var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x * (uint)value)); 1218var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1222var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x * (ulong)value)); 1230var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1234var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x * (int)value)); 1242var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1244var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1247var verify = Enumerable.Range(1, 10).Select(x => (int)(1)); 1255var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1257var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 1260var verify = Enumerable.Range(1, 10).Select(x => (decimal)(1)); 1268var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1270var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 1273var verify = Enumerable.Range(1, 10).Select(x => (double)(1)); 1281var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1283var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 1286var verify = Enumerable.Range(1, 10).Select(x => (float)(1)); 1294var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1296var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 1299var verify = Enumerable.Range(1, 10).Select(x => (int)(1)); 1307var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1309var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 1312var verify = Enumerable.Range(1, 10).Select(x => (long)(1)); 1320var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1322var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 1325var verify = Enumerable.Range(1, 10).Select(x => (int)(1)); 1333var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1335var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 1338var verify = Enumerable.Range(1, 10).Select(x => (int)(1)); 1346var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1348var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 1351var verify = Enumerable.Range(1, 10).Select(x => (uint)(1)); 1359var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1361var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 1364var verify = Enumerable.Range(1, 10).Select(x => (ulong)(1)); 1372var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1374var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 1377var verify = Enumerable.Range(1, 10).Select(x => (int)(1)); 1385var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1389var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x / (int)value)); 1397var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1401var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x / (decimal)value)); 1409var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1413var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x / (double)value)); 1421var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1425var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x / (float)value)); 1433var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1437var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x / (int)value)); 1445var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1449var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x / (long)value)); 1457var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1461var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x / (int)value)); 1469var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1473var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x / (int)value)); 1481var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1485var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x / (uint)value)); 1493var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1497var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x / (ulong)value)); 1505var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1509var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x / (int)value)); 1517var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1521var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value / (int)x)); 1529var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1533var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)value / (decimal)x)); 1541var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1545var verify = Enumerable.Range(1, 10).Select(x => (double)((double)value / (double)x)); 1553var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1557var verify = Enumerable.Range(1, 10).Select(x => (float)((float)value / (float)x)); 1565var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1569var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value / (int)x)); 1577var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1581var verify = Enumerable.Range(1, 10).Select(x => (long)((long)value / (long)x)); 1589var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1593var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value / (int)x)); 1601var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1605var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value / (int)x)); 1613var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1617var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)value / (uint)x)); 1625var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1629var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)value / (ulong)x)); 1637var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1641var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value / (int)x)); 1649var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1651var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1654var verify = Enumerable.Range(1, 10).Select(x => (int)(0)); 1662var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1664var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 1667var verify = Enumerable.Range(1, 10).Select(x => (decimal)(0)); 1675var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1677var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 1680var verify = Enumerable.Range(1, 10).Select(x => (double)(0)); 1688var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1690var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 1693var verify = Enumerable.Range(1, 10).Select(x => (float)(0)); 1701var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1703var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 1706var verify = Enumerable.Range(1, 10).Select(x => (int)(0)); 1714var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1716var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 1719var verify = Enumerable.Range(1, 10).Select(x => (long)(0)); 1727var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1729var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 1732var verify = Enumerable.Range(1, 10).Select(x => (int)(0)); 1740var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1742var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 1745var verify = Enumerable.Range(1, 10).Select(x => (int)(0)); 1753var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1755var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 1758var verify = Enumerable.Range(1, 10).Select(x => (uint)(0)); 1766var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1768var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 1771var verify = Enumerable.Range(1, 10).Select(x => (ulong)(0)); 1779var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1781var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 1784var verify = Enumerable.Range(1, 10).Select(x => (int)(0)); 1792var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1796var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x % (int)value)); 1804var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1808var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)x % (decimal)value)); 1816var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1820var verify = Enumerable.Range(1, 10).Select(x => (double)((double)x % (double)value)); 1828var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1832var verify = Enumerable.Range(1, 10).Select(x => (float)((float)x % (float)value)); 1840var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1844var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x % (int)value)); 1852var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1856var verify = Enumerable.Range(1, 10).Select(x => (long)((long)x % (long)value)); 1864var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1868var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x % (int)value)); 1876var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1880var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x % (int)value)); 1888var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1892var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)x % (uint)value)); 1900var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1904var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)x % (ulong)value)); 1912var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1916var verify = Enumerable.Range(1, 10).Select(x => (int)((int)x % (int)value)); 1924var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1928var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value % (int)x)); 1936var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1940var verify = Enumerable.Range(1, 10).Select(x => (decimal)((decimal)value % (decimal)x)); 1948var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1952var verify = Enumerable.Range(1, 10).Select(x => (double)((double)value % (double)x)); 1960var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1964var verify = Enumerable.Range(1, 10).Select(x => (float)((float)value % (float)x)); 1972var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1976var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value % (int)x)); 1984var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 1988var verify = Enumerable.Range(1, 10).Select(x => (long)((long)value % (long)x)); 1996var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2000var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value % (int)x)); 2008var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2012var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value % (int)x)); 2020var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2024var verify = Enumerable.Range(1, 10).Select(x => (uint)((uint)value % (uint)x)); 2032var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2036var verify = Enumerable.Range(1, 10).Select(x => (ulong)((ulong)value % (ulong)x)); 2044var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2048var verify = Enumerable.Range(1, 10).Select(x => (int)((int)value % (int)x)); 2056var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2058var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2061var verify = Enumerable.Range(1, 10).Select(x => true); 2071var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2073var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 2076var verify = Enumerable.Range(1, 10).Select(x => true); 2086var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2088var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 2091var verify = Enumerable.Range(1, 10).Select(x => true); 2101var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2103var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 2106var verify = Enumerable.Range(1, 10).Select(x => true); 2116var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2118var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 2121var verify = Enumerable.Range(1, 10).Select(x => true); 2131var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2133var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 2136var verify = Enumerable.Range(1, 10).Select(x => true); 2146var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2148var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 2151var verify = Enumerable.Range(1, 10).Select(x => true); 2161var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2163var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 2166var verify = Enumerable.Range(1, 10).Select(x => true); 2176var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2178var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 2181var verify = Enumerable.Range(1, 10).Select(x => true); 2191var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2193var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 2196var verify = Enumerable.Range(1, 10).Select(x => true); 2206var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2208var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 2211var verify = Enumerable.Range(1, 10).Select(x => true); 2221var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2225var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2233var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2237var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2245var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2249var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2257var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2261var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2269var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2273var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2281var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2285var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2293var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2297var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2305var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2309var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2317var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2321var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2329var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2333var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2341var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2345var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2353var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2355var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2358var verify = Enumerable.Range(1, 10).Select(x => true); 2368var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2370var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (decimal)x); 2373var verify = Enumerable.Range(1, 10).Select(x => true); 2383var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2385var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (double)x); 2388var verify = Enumerable.Range(1, 10).Select(x => true); 2398var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2400var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (float)x); 2403var verify = Enumerable.Range(1, 10).Select(x => true); 2413var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2415var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (int)x); 2418var verify = Enumerable.Range(1, 10).Select(x => true); 2428var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2430var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (long)x); 2433var verify = Enumerable.Range(1, 10).Select(x => true); 2443var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2445var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (sbyte)x); 2448var verify = Enumerable.Range(1, 10).Select(x => true); 2458var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2460var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (short)x); 2463var verify = Enumerable.Range(1, 10).Select(x => true); 2473var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2475var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (uint)x); 2478var verify = Enumerable.Range(1, 10).Select(x => true); 2488var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2490var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ulong)x); 2493var verify = Enumerable.Range(1, 10).Select(x => true); 2503var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2505var otherColumnEnumerable = Enumerable.Range(1, 10).Select(x => (ushort)x); 2508var verify = Enumerable.Range(1, 10).Select(x => true); 2518var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2522var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2530var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2534var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2542var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2546var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2554var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2558var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2566var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2570var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2578var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2582var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2590var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2594var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2602var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2606var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2614var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2618var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2626var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2630var verify = Enumerable.Range(1, 10).Select(x => (bool)(false)); 2638var columnEnumerable = Enumerable.Range(1, 10).Select(x => (byte)x); 2642var verify = Enumerable.Range(1, 10).Select(x => (bool)(false));
DataFrameGroupByTests.cs (2)
107DataFrameColumn parityColumn = new StringDataFrameColumn("Parity", Enumerable.Range(0, length).Select(x => x % 2 == 0 ? "even" : "odd")); 108DataFrameColumn tensColumn = new Int32DataFrameColumn("Tens", Enumerable.Range(0, length).Select(x => x / 10));
DataFrameIDataViewTests.cs (1)
110DataFrameColumn boolColumn = new PrimitiveDataFrameColumn<bool>("Bool", Enumerable.Range(0, (int)df.Rows.Count).Select(x => x % 2 == 1));
DataFrameTests.BinaryOperations.cs (8)
158var dataFrameColumn1 = new DoubleDataFrameColumn("Double1", Enumerable.Range(0, 10).Select(x => (double)x)); 168var dataFrameColumn1 = new BooleanDataFrameColumn("Bool1", Enumerable.Range(0, 10).Select(x => true)); 169var dataFrameColumn2 = new BooleanDataFrameColumn("Bool2", Enumerable.Range(0, 10).Select(x => true)); 200var dataFrameColumn1 = new DateTimeDataFrameColumn("DateTime1", Enumerable.Range(0, 5).Select(x => SampleDateTime.AddDays(x))); 202var dataFrameColumn2 = new DateTimeDataFrameColumn("DateTime2", Enumerable.Range(0, 4).Select(x => SampleDateTime.AddDays(x))); 298DataFrameColumn stringColumn = new StringDataFrameColumn("String", Enumerable.Range(0, 10).Select(x => x.ToString())); 309DataFrameColumn stringColumnCopy = new StringDataFrameColumn("String", Enumerable.Range(0, 10).Select(x => x.ToString())); 430Int32DataFrameColumn column = new Int32DataFrameColumn("Int", Enumerable.Range(0, 10));
DataFrameTests.Computations.cs (1)
415IEnumerable<int> range = Enumerable.Range(startingFrom, length);
DataFrameTests.cs (25)
61DataFrameColumn intColumn = new Int32DataFrameColumn("IntColumn", Enumerable.Range(0, rowCount).Select(x => x)); 62DataFrameColumn floatColumn = new SingleDataFrameColumn("FloatColumn", Enumerable.Range(0, rowCount).Select(x => (float)x)); 75DataFrameColumn bigColumn = new SingleDataFrameColumn("BigColumn", Enumerable.Range(0, rowCount + 1).Select(x => (float)x)); 80DataFrameColumn smallColumn = new SingleDataFrameColumn("SmallColumn", Enumerable.Range(0, rowCount - 1).Select(x => (float)x)); 85DataFrameColumn repeatedName = new SingleDataFrameColumn("FloatColumn", Enumerable.Range(0, rowCount).Select(x => (float)x)); 89DataFrameColumn extraColumn = new SingleDataFrameColumn("OtherFloatColumn", Enumerable.Range(0, rowCount).Select(x => (float)x)); 94DataFrameColumn intColumnCopy = new Int32DataFrameColumn("IntColumn", Enumerable.Range(0, rowCount).Select(x => x)); 97DataFrameColumn differentIntColumn = new Int32DataFrameColumn("IntColumn1", Enumerable.Range(0, rowCount).Select(x => x)); 116DataFrameColumn intColumn = new Int32DataFrameColumn("NewIntColumn", Enumerable.Range(0, 10).Select(x => x)); 150DataFrameColumn intColumn = new Int32DataFrameColumn("NewIntColumn", Enumerable.Range(0, 10).Select(x => x)); 218var column = new Int32DataFrameColumn("Int", Enumerable.Range(0, 10)); 804Assert.Throws<ArgumentException>(() => df.Columns.Insert(1, new Int32DataFrameColumn("Int2", Enumerable.Range(0, 5).Select(x => x)))); 1202StringDataFrameColumn column = new StringDataFrameColumn("Strings", Enumerable.Range(0, 11).Select(x => x.ToString())); 1248DataFrameColumn stringColumn = DataFrameColumn.Create("String", Enumerable.Range(0, length).Select(x => x.ToString())); 1250DataFrameColumn byteColumn = DataFrameColumn.Create("Byte", Enumerable.Range(0, length).Select(x => (byte)x)); 1252DataFrameColumn decimalColumn = DataFrameColumn.Create("Decimal", Enumerable.Range(0, length).Select(x => (decimal)x)); 1254DataFrameColumn doubleColumn = DataFrameColumn.Create("Double", Enumerable.Range(0, length).Select(x => (double)x)); 1256DataFrameColumn floatColumn = DataFrameColumn.Create("Float", Enumerable.Range(0, length).Select(x => (float)x)); 1258DataFrameColumn intColumn = DataFrameColumn.Create("Int", Enumerable.Range(0, length).Select(x => x)); 1260DataFrameColumn longColumn = DataFrameColumn.Create("Long", Enumerable.Range(0, length).Select(x => (long)x)); 1262DataFrameColumn sbyteColumn = DataFrameColumn.Create("Sbyte", Enumerable.Range(0, length).Select(x => (sbyte)x)); 1264DataFrameColumn shortColumn = DataFrameColumn.Create("Short", Enumerable.Range(0, length).Select(x => (short)x)); 1266DataFrameColumn uintColumn = DataFrameColumn.Create("Uint", Enumerable.Range(0, length).Select(x => (uint)x)); 1268DataFrameColumn ulongColumn = DataFrameColumn.Create("Ulong", Enumerable.Range(0, length).Select(x => (ulong)x)); 1270DataFrameColumn 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)
57StringDataFrameColumn strCol2 = new StringDataFrameColumn("String", Enumerable.Range(0, 10).Select(x => x.ToString())); 60StringDataFrameColumn strCol3 = new StringDataFrameColumn("String", Enumerable.Range(0, 10).Select(x => (string)null)); 91PrimitiveDataFrameColumn<int> dataFrameColumn1 = new PrimitiveDataFrameColumn<int>("Int1", Enumerable.Range(0, 10).Select(x => x)); 120PrimitiveDataFrameColumn<int> dataFrameColumn1 = new PrimitiveDataFrameColumn<int>("Int1", Enumerable.Range(0, 10)); 130PrimitiveDataFrameColumn<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.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.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.Numerics.Tensors (8)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (3)
144public ReadOnlyTensorSpan(Array? array) : this(array, ReadOnlySpan<int>.Empty, array == null ? [0] : (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(), []) { } 156lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(); 200lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray();
System\Numerics\Tensors\netcore\Tensor.cs (1)
675maximumLengths = (from number in Enumerable.Range(0, Rank) select (nint)5).ToArray();
System\Numerics\Tensors\netcore\TensorExtensions.cs (1)
3605int[] dimension = Enumerable.Range(0, tensor.Rank).ToArray();
System\Numerics\Tensors\netcore\TensorSpan.cs (3)
147public TensorSpan(Array? array) : this(array, ReadOnlySpan<int>.Empty, array == null ? [0] : (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(), []) { } 159lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(); 204lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).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();