17 references to Max
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
436var longestAnalyzerName = telemetryInfoDictionary.Select(x => x.Key.GetType().Name.Length).Max();
dotnet-user-jwts (1)
Helpers\ConsoleTable.cs (1)
54.Select(x => x!.ToString()!.Length).Max())
Microsoft.Build.Engine.UnitTests (1)
BuildEventArgsSerialization_Tests.cs (1)
1051BinaryLogRecordKind unknownType = (BinaryLogRecordKind)Enum.GetValues(typeof(BinaryLogRecordKind)).Cast<BinaryLogRecordKind>().Select(e => (int)e).Max() + 2;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Metadata\PE\LoadingEvents.cs (1)
399int length = 1 + modList.Cast<int>().Max();
Symbols\Metadata\PE\LoadingProperties.cs (1)
314int length = 1 + modList.Cast<int>().Max();
Microsoft.CodeAnalysis.Features (1)
Snippets\RoslynLSPSnippetConverter.cs (1)
135endPosition = Math.Max(endPosition, placeholders.Max(placeholder => placeholder.StartingPositions.Max()));
Microsoft.Data.Analysis.Tests (1)
DataFrameTests.Computations.cs (1)
417int max = range.Max();
Microsoft.DotNet.VersionTools (1)
BuildManifest\VersionIdentifier.cs (1)
207int maxKey = majorMinorPatchDictionary.Keys.Max();
Microsoft.ML.FastTree (6)
Dataset\Dataset.cs (1)
160_maxDocsPerQuery = Enumerable.Range(0, NumQueries).Select(NumDocsInQuery).Max();
Dataset\FeatureFlock.cs (1)
1175Contracts.Assert(bins.Max() < hotFeatureStarts[hotFeatureStarts.Length - 1]);
Dataset\FeatureHistogram.cs (1)
39Contracts.Assert(bins.Length == 0 || (0 <= numBins && bins.Max() < numBins));
Dataset\SingletonFeatureFlock.cs (1)
27Contracts.Assert(bins.Length == 0 || bins.Max() < binUpperBounds.Length);
FastTree.cs (2)
1027ch.Assert(0 <= features.Min() && features.Max() < NumFeatures); 1111ch.Assert(0 <= features.Min() && features.Max() < NumFeatures);
Microsoft.ML.Sweeper (1)
Algorithms\KdoSweeper.cs (1)
179_host.Assert(history.Length == weights.Length && parentIndicies.Max() < history.Length);
Microsoft.ML.TorchSharp (1)
NasBert\Modules\SearchSpace.cs (1)
32var maxHidden = hiddenList.Max();
Microsoft.ML.Transforms (1)
Text\StopWordsRemovingTransformer.cs (1)
151int maxValue = langValues.Max();