22 references to Max
dotnet (4)
Commands\Sdk\Check\SdkOutputWriter.cs (2)
103return newestAvailable != null && newestAvailable > _sdkInfo.Select(sdk => sdk.Version).Max(); 115return _sdkInfo.Any() ? _sdkInfo.Select(sdk => sdk.Version).Max() : null;
Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
339.Max() :
Commands\Workload\InstallingWorkloadCommand.cs (1)
442var maxPriorFeatureBand = priorFeatureBands.Max();
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
980var maxShippedVersion = versionsBuilder.Max();
Microsoft.Data.Analysis.Tests (4)
DataFrameTests.Computations.cs (4)
439Assert.Equal((byte)byteColumn.Max(), range.Select(x => (byte)x).Max()); 450Assert.Equal((uint)uintColumn.Max(), range.Select(x => (uint)x).Max()); 453Assert.Equal((ulong)ulongColumn.Max(), range.Select(x => (ulong)x).Max()); 456Assert.Equal((ushort)ushortColumn.Max(), range.Select(x => (ushort)x).Max());
Microsoft.DotNet.Build.Tasks.Packaging (4)
GenerateRuntimeDependencies.cs (1)
120var maxDependencyVersion = dependencyVersions.Max();
GetLastStablePackage.cs (1)
153lastStablePackages.Add(CreateItem(latestPackage, candidateVersions.Max()));
GetPackageVersion.cs (1)
42Version = versionsToConsider.Max().ToString();
UpdatePackageIndex.cs (1)
182var maxVersion = packageInfo.StableVersions.Max();
Microsoft.ML.AutoML (1)
Sweepers\SmacSweeper.cs (1)
181RunResult bestRun = (RunResult)previousRuns.Max();
Microsoft.ML.FastTree (1)
Dataset\DatasetUtils.cs (1)
34short maxLab = ratings.Length > 0 ? ratings.Max() : (short)0;
Microsoft.ML.Sweeper (1)
Algorithms\SmacSweeper.cs (1)
195RunResult bestRun = (RunResult)previousRuns.Max();
NuGet.CommandLine.XPlat (1)
Utility\AddPackageCommandUtility.cs (1)
59return latestReleaseList.Max();
NuGet.Commands (1)
RestoreCommand\Diagnostics\UnresolvedMessages.cs (1)
352bestMatch = versions.Max();
NuGet.PackageManagement (2)
NuGetPackageManager.cs (2)
3843var latestVersion = resolvedPackages.Select(v => v.LatestVersion).Where(v => v != null).Max(); 3867.Where(v => v != null && (package.AllowedVersions == null || package.AllowedVersions.Satisfies(v))).Max();
System.Linq (2)
System\Linq\Max.cs (1)
309/// <para>If type <typeparamref name="TSource" /> implements <see cref="System.IComparable{T}" />, the <see cref="Max{T}(IEnumerable{T})" /> method uses that implementation to compare values. Otherwise, if type <typeparamref name="TSource" /> implements <see cref="System.IComparable" />, that implementation is used to compare values.</para>
System\Linq\OrderedEnumerable.SpeedOpt.cs (1)
397Max(_source);