575 references to Max
dotnet-user-jwts (1)
http2cat (2)
IIS.FunctionalTests (2)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.NewShim.FunctionalTests (2)
IISExpress.FunctionalTests (2)
ILCompiler.DependencyAnalysisFramework (1)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Server (6)
Microsoft.AspNetCore.Components.Web (5)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Abstractions (5)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Extensions (3)
Microsoft.AspNetCore.HttpLogging (4)
Microsoft.AspNetCore.HttpOverrides (4)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.Routing (5)
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.Shared.Tests (2)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Common (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
Microsoft.AspNetCore.WebSockets (3)
Microsoft.AspNetCore.WebUtilities (4)
Microsoft.AspNetCore.WebUtilities.Tests (2)
Microsoft.Build (13)
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Utilities.Core (2)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.Extensions.Caching.Hybrid (2)
Microsoft.Extensions.Caching.MicroBenchmarks (2)
Microsoft.Extensions.DependencyInjection (1)
Microsoft.Extensions.FileProviders.Physical (1)
Microsoft.Extensions.Logging.Console (2)
Microsoft.Extensions.Logging.Generators (3)
Microsoft.Interop.SourceGeneration (2)
Microsoft.JSInterop (2)
Microsoft.VisualBasic.Core (5)
MonoTargetsTasks (1)
MSBuild (3)
MSBuildTaskHost (2)
PresentationCore (44)
System\Windows\Media\GlyphsSerializer.cs (1)
72Math.Max(
PresentationFramework (133)
MS\Internal\Documents\TextBoxView.cs (10)
705firstLineIndex = Math.Max(firstLineIndex, GetLineIndexFromOffset(startOffset, LogicalDirection.Forward));
775int nextLineIndex = Math.Max(0, Math.Min(_lineMetrics.Count - 1, lineIndex + count));
2049int startOffset = Math.Max(_lineMetrics[lineIndex].Offset, unclippedStartOffset);
2145int startOffset = Math.Max(lineStartOffset, unclippedStartOffset);
2208firstLineIndex = Math.Max(0, Math.Min(firstLineIndex, _lineMetrics.Count - 1));
2209lastLineIndex = Math.Max(0, Math.Min(lastLineIndex, _lineMetrics.Count - 1));
2555int lastCoveredCharOffset = range.StartIndex + Math.Max(range.PositionsAdded, range.PositionsRemoved);
2714int lineIndex = Math.Max(oldLineVisualsIndex, firstLineIndex);
2809count = Math.Max(0, count);
2993int rangeStart = Math.Max(viewportStart, selectionStart);
MS\Internal\PtsHost\ContainerParagraph.cs (8)
528fsrcToFillSubtrack.u = Math.Max(Math.Min(fsrcToFillSubtrack.u, fsrcToFill.u + fsrcToFill.du - 1), fsrcToFill.u);
529fsrcToFillSubtrack.du = Math.Max(fsrcToFillSubtrack.du, 0);
542fsrcToFillSubtrack.v = Math.Max(Math.Min(fsrcToFillSubtrack.v, fsrcToFill.v + fsrcToFill.dv - 1), fsrcToFill.v);
543fsrcToFillSubtrack.dv = Math.Max(fsrcToFillSubtrack.dv, 0);
686urSubtrack = Math.Max(Math.Min(urTrack + mbp.MBPLeft, urTrack + durTrack - 1), urTrack);
687durSubtrack = Math.Max(durTrack - (mbp.MBPLeft + mbp.MBPRight), 0);
816urSubtrack = Math.Max(Math.Min(urTrack + mbp.MBPLeft, urTrack + durTrack - 1), urTrack);
817durSubtrack = Math.Max(durTrack - (mbp.MBPLeft + mbp.MBPRight), 0);
MS\Internal\PtsHost\SubpageParagraph.cs (16)
182subpageWidth = Math.Max(1, subpageWidth - (mbp.MBPLeft + mbp.MBPRight));
191subpageHeight = Math.Max(1, subpageHeight - (marginTop + mbp.BPTop));
245dvrUsed = Math.Max(dvrUsed, fsbbox.fsrc.dv + fsbbox.fsrc.v);
246fsrcToFill.du = Math.Max(fsrcToFill.du, fsbbox.fsrc.du + fsbbox.fsrc.u);
289fsbbox.fsrc.du = Math.Max(fsrcToFill.du - (mbp.MarginLeft + mbp.MarginRight), 0);
290fsbbox.fsrc.dv = Math.Max(dvrUsed - dvrTopSpace, 0);
369subpageWidth = Math.Max(1, subpageWidth - (mbp.MBPLeft + mbp.MBPRight));
441dvrUsed = Math.Max(dvrUsed, fsbbox.fsrc.dv + fsbbox.fsrc.v);
442durTrack = Math.Max(durTrack, fsbbox.fsrc.du + fsbbox.fsrc.u);
452fsbbox.fsrc.du = Math.Max(durTrack - (mbp.MarginLeft + mbp.MarginRight), 0);
453fsbbox.fsrc.dv = Math.Max(dvrUsed - dvrTopSpace, 0);
529subpageWidth = Math.Max(1, subpageWidth - (mbp.MBPLeft + mbp.MBPRight));
600dvrUsed = Math.Max(dvrUsed, fsbbox.fsrc.dv + fsbbox.fsrc.v);
601durTrack = Math.Max(durTrack, fsbbox.fsrc.du + fsbbox.fsrc.u);
611fsbbox.fsrc.du = Math.Max(durTrack - (mbp.MarginLeft + mbp.MarginRight), 0);
612fsbbox.fsrc.dv = Math.Max(dvrUsed - dvrTopSpace, 0);
MS\Internal\PtsHost\TextParaClient.cs (9)
745int dcpStart = Math.Max(cpStartTextPointer, cpParagraphStart) - cpParagraphStart;
1414int countVisualsShiftBeforeChange = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual, 0), lineVisuals.Count);
1431int actualLinesToRemove = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual + cLinesToRemove, 0), lineVisuals.Count);
1879int dcpRangeStartForThisLine = Math.Max(lineDesc.dcpFirst, dcpStart);
1882int cchRangeForThisLine = Math.Max(Math.Min(lineDesc.dcpLim, dcpEnd) - dcpRangeStartForThisLine, 1);
1989int dcpRangeStartForThisElem = Math.Max(elemDesc.dcpFirst, dcpStart);
1992int cchRangeForThisElem = Math.Max(Math.Min(elemDesc.dcpLim, dcpEnd) - dcpRangeStartForThisElem, 1);
3133line.GetGlyphRuns(glyphRuns, Math.Max(dcpStart, lineDesc.dcpFirst), Math.Min(dcpEnd, lineDesc.dcpLim));
3195line.GetGlyphRuns(glyphRuns, Math.Max(dcpStart, element.dcpFirst), Math.Min(dcpEnd, element.dcpLim));
PresentationUI (5)
ReachFramework (5)
SignalRSamples (1)
Swaggatherer (1)
System.Collections (1)
System.Collections.Concurrent (4)
System.Collections.Immutable (1)
System.ComponentModel.TypeConverter (2)
System.Console (1)
System.Data.Common (12)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.Process (2)
System.Drawing.Primitives (4)
System.Formats.Asn1 (1)
System.Formats.Tar (1)
System.IO.Pipelines (3)
System.Linq (3)
System.Linq.Expressions (4)
System.Linq.Parallel (1)
System.Memory (2)
System.Net.Http (5)
System.Net.HttpListener (1)
System.Net.Ping (1)
System.Net.Requests (1)
System.Net.Sockets (1)
System.Net.WebSockets (2)
System.Numerics.Tensors (2)
System.Private.CoreLib (74)
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (27)
615nMaxDigits = Math.Max(number.DigitsCount, DoublePrecision);
726nMaxDigits = Math.Max(number.DigitsCount, SinglePrecision);
821nMaxDigits = Math.Max(number.DigitsCount, HalfPrecision);
1623int bufferLength = Math.Max(digits, FormattingHelpers.CountDigits((uint)(-value))) + sNegative.Length;
1649int bufferLength = Math.Max(digits, FormattingHelpers.CountDigits((uint)(-value))) + sNegative.Length;
1678int bufferLength = Math.Max(digits, FormattingHelpers.CountHexDigits((uint)value));
1697int bufferLength = Math.Max(digits, FormattingHelpers.CountHexDigits((uint)value));
1734int bufferLength = Math.Max(digits, 32 - (int)uint.LeadingZeroCount(value));
1753int bufferLength = Math.Max(digits, 32 - (int)uint.LeadingZeroCount(value));
1952int bufferLength = Math.Max(digits, FormattingHelpers.CountDigits(value));
1988int bufferLength = Math.Max(digits, countedDigits);
2056int bufferLength = Math.Max(digits, FormattingHelpers.CountDigits((ulong)(-value))) + sNegative.Length;
2082int bufferLength = Math.Max(digits, FormattingHelpers.CountDigits((ulong)(-value))) + sNegative.Length;
2111int bufferLength = Math.Max(digits, FormattingHelpers.CountHexDigits((ulong)value));
2130int bufferLength = Math.Max(digits, FormattingHelpers.CountHexDigits((ulong)value));
2183int bufferLength = Math.Max(digits, 64 - (int)ulong.LeadingZeroCount(value));
2202int bufferLength = Math.Max(digits, 64 - (int)ulong.LeadingZeroCount(value));
2380int bufferLength = Math.Max(digits, FormattingHelpers.CountDigits(value));
2415int bufferLength = Math.Max(digits, countedDigits);
2484int bufferLength = Math.Max(digits, FormattingHelpers.CountDigits(absValue)) + sNegative.Length;
2512int bufferLength = Math.Max(digits, FormattingHelpers.CountDigits(absValue)) + sNegative.Length;
2543int bufferLength = Math.Max(digits, FormattingHelpers.CountHexDigits(uValue));
2564int bufferLength = Math.Max(digits, FormattingHelpers.CountHexDigits(uValue));
2593return Int64ToHexChars(buffer, lower, hexBase, Math.Max(digits, 1));
2656return UInt64ToBinaryChars(buffer, lower, Math.Max(digits, 1));
2742int bufferLength = Math.Max(digits, FormattingHelpers.CountDigits(value));
2756int bufferLength = Math.Max(digits, countedDigits);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (6)
135capacity = Math.Max(capacity, length);
207persistedCapacity = Math.Min(Math.Max(DefaultCapacity, persistedString.Length), persistedMaxCapacity);
417int capacityToPreserve = Math.Min(Capacity, Math.Max(Length * 6 / 5, m_ChunkChars.Length));
2230int curInChunk = Math.Max(startIndexInChunk, 0);
2561int newBlockLength = Math.Max(minBlockCharCount, Math.Min(Length, MaxChunkSize));
2669StringBuilder newChunk = new StringBuilder(Math.Max(count, DefaultCapacity), chunk.m_MaxCapacity, chunk.m_ChunkPrevious);
System.Private.CoreLib.Generators (3)
System.Private.DataContractSerialization (13)
System.Private.Uri (2)
System.Private.Xml (4)
System.Reflection.Emit (2)
System.Reflection.Metadata (6)
System.Runtime.Caching (9)
System.Runtime.Numerics (12)
System.Runtime.Serialization.Formatters (5)
System.Security.Cryptography (6)
System.Security.Cryptography.Cose (2)
System.Text.Encodings.Web (4)
System.Text.Json (11)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (10)
System.Text.RegularExpressions.Generator (7)
System.Threading.RateLimiting (2)
System.Windows.Controls.Ribbon (8)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (7)
368columnCount = Math.Min(Math.Max(minColumnCount, Math.Min((int)(availableSize.Width / maxColumnWidth), childrenCount)), maxColumnCount);
380columnCount = Math.Min(Math.Max(minColumnCount, Math.Min((int)(availableSize.Width / maxColumnWidth), childrenCount)), maxColumnCount);
387columnCount = Math.Min(Math.Max(minColumnCount, Math.Min((int)(availableSize.Width / arrangeWidth), childrenCount)), maxColumnCount);
396columnCount = Math.Min(Math.Max(minColumnCount, Math.Min((int)(availableSize.Width / maxColumnWidth), childrenCount)), maxColumnCount);
403columnCount = Math.Min(Math.Max(minColumnCount, Math.Min((int)(availableSize.Width / _arrangeWidth), childrenCount)), maxColumnCount);
410columnCount = Math.Max(minColumnCount, Math.Min(childrenCount, maxColumnCount));
572finalColumnCount = Math.Max(minColumnCount, Math.Min((int)(finalSize.Width / arrangeWidth), maxColumnCount));
System.Xaml (1)
UIAutomationClientSideProviders (10)
UIAutomationTypes (1)
WindowsFormsIntegration (2)