66 references to Max
Aspire.Dashboard (1)
Otlp\Model\OtlpTrace.cs (1)
51public int CalculateMaxDepth() => Spans.Max(CalculateDepth);
ClientSample (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
CodeGenerator (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
774Debug.Assert(requestHeaders.Max(x => x.Index) <= 62);
dotnet-dev-certs (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
dotnet-getdocument (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
dotnet-openapi (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
dotnet-sql-cache (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
dotnet-user-jwts (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
dotnet-user-secrets (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
GetDocument.Insider (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
313.Max(x => int.TryParse(x.Name.Split('.').ElementAtOrDefault(Index.FromEnd(2)), out var parsed)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
774Debug.Assert(requestHeaders.Max(x => x.Index) <= 62);
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\AbstractPasteProcessor.cs (2)
142var longestQuoteSequence = textContentSpansAfterChange.Max(ts => GetLongestQuoteSequence(textAfterChange, ts)); 161var longestBraceSequence = textContentSpansAfterChange.Max(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\LexicalTests.cs (1)
3746.Max(x => x.Length);
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\EditSession.cs (1)
134var highestEmittedTypeDefRow = emitResult.ChangedTypes.Max(t => MetadataTokens.GetRowNumber(t));
Snippets\RoslynLSPSnippetConverter.cs (1)
135endPosition = Math.Max(endPosition, placeholders.Max(placeholder => placeholder.StartingPositions.Max()));
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\ActiveStatementsDescription.cs (1)
53var activeStatementCount = Math.Max(OldStatements.Length, (newActiveStatementMarkers.Length == 0) ? -1 : newActiveStatementMarkers.Max(m => m.Id));
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\IntervalTreeTests.cs (1)
316var max = spans.Max(t => t.Item1 + t.Item2);
Microsoft.Extensions.Options.SourceGeneration (1)
Emitter.cs (1)
694int capacity = modelToValidate.MembersToValidate.Count == 0 ? 0 : modelToValidate.MembersToValidate.Max(static vm => vm.ValidationAttributes.Count);
Microsoft.ML.Data (1)
Evaluators\EvaluatorUtils.cs (1)
1597int maxNameLen = confusionMatrix.PredictedClassesIndicators.Max(name => name.Length);
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
251int maxRows = columns.Max(i => i.MaximumNumberOfRows);
Microsoft.ML.Transforms (1)
Dracula\CMCountTable.cs (1)
62Contracts.Check(tables.All(t => t.All(t2 => t2.Max(kvp => kvp.Key) < Width)), "Keys must be between 0 and Width - 1");
Microsoft.VisualStudio.LanguageServices (1)
StackTraceExplorer\StackTraceExplorerRootViewModel.cs (1)
52: Tabs.Max(t => t.NameIndex);
Swaggatherer (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
System.Threading.Tasks.Dataflow (1)
Blocks\JoinBlock.cs (1)
1290_targets.Max(static t => t.NumberOfMessagesAvailableOrPostponed));
Templates.Blazor.Tests (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
Templates.Blazor.WebAssembly.Tests (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
Templates.Mvc.Tests (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
Templates.Tests (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
Wasm.Performance.ConsoleHost (3)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (3)
480var maxArgLen = arguments.Max(a => a.Name.Length); 496var maxOptLen = options.Max(o => o.Template.Length); 512var maxCmdLen = commands.Max(c => c.Name.Length);
xunit.assert (1)
Sdk\Exceptions\AllException.cs (1)
46 var maxItemIndexLength = errors.Max(x => x.Item1).ToString(CultureInfo.CurrentCulture).Length + 4; // "[#]: "