751 references to Min
http2cat (7)
IIS.FunctionalTests (7)
IIS.LongTests (7)
IIS.NewHandler.FunctionalTests (7)
IIS.NewShim.FunctionalTests (7)
IIS.ShadowCopy.Tests (2)
IISExpress.FunctionalTests (7)
InMemory.FunctionalTests (1)
Microsoft.Arcade.Test.Common (2)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.Authentication.Cookies (1)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.Cryptography.KeyDerivation (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.HttpLogging (3)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (4)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (7)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (12)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Microsoft.AspNetCore.Shared.Tests (15)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.WebSockets (1)
Microsoft.AspNetCore.WebSockets.Tests (2)
Microsoft.AspNetCore.WebUtilities (14)
MultipartReaderStream.cs (6)
177var slice = buffer.AsSpan(0, Math.Min(buffer.Length, index));
197read = _innerStream.Read(buffer, offset, Math.Min(count, matchOffset - bufferedData.Offset));
208read = _innerStream.Read(buffer, offset, Math.Min(count, bufferedData.Count));
257var slice = buffer[..Math.Min(buffer.Length, index)];
280var slice = buffer[..Math.Min(buffer.Length, matchOffset - bufferedData.Offset)];
294read = _innerStream.Read(buffer.Span[..Math.Min(buffer.Length, bufferedData.Count)]);
Microsoft.Build (15)
Microsoft.Build.Engine (1)
Microsoft.Build.Framework (10)
SegmentedArray.cs (10)
488var currentSegmentLength = Math.Min(remainingInSegment, _length);
497var currentSegmentLength = Math.Min(SegmentedArrayHelper.GetSegmentSize<T>(), _length - _completed);
592var currentSegmentLength = Math.Min(Math.Min(remainingInFirstSegment, remainingInSecondSegment), _length - _completed);
640var currentSegmentLength = Math.Min(Math.Min(remainingInFirstSegment, remainingInSecondSegment), _length - _completed);
730_current = segment.AsMemory().Slice(offset, Math.Min(remainingInSegment, _length));
737_current = segment.AsMemory().Slice(0, Math.Min(SegmentedArrayHelper.GetSegmentSize<T>(), _length - _completed));
779_current = segment.AsMemory().Slice(offset, Math.Min(remainingInSegment, _length));
786_current = segment.AsMemory().Slice(0, Math.Min(SegmentedArrayHelper.GetSegmentSize<T>(), _length - _completed));
Microsoft.Build.Tasks.Core (6)
Microsoft.Build.UnitTests.Shared (2)
Microsoft.Build.Utilities.Core (2)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.VersionTools (1)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Interop.SourceGeneration (2)
Microsoft.NET.WebAssembly.Webcil (1)
Microsoft.VisualBasic.Core (3)
MonoAOTCompiler (1)
MonoTargetsTasks (3)
MSBuild (3)
MSBuildTaskHost (1)
PresentationBuildTasks (3)
PresentationCore (58)
System\Windows\Media\FormattedText.cs (13)
344i = Math.Min(limit, i + formatRider.Length);
418i = Math.Min(limit, i + formatRider.Length);
473i = Math.Min(limit, i + formatRider.Length);
526i = Math.Min(limit, i + formatRider.Length);
585i = Math.Min(limit, i + formatRider.Length);
644i = Math.Min(limit, i + formatRider.Length);
696i = Math.Min(limit, i + formatRider.Length);
749i = Math.Min(limit, i + formatRider.Length);
802i = Math.Min(limit, i + formatRider.Length);
854i = Math.Min(limit, i + formatRider.Length);
995return _that._maxTextWidths[Math.Min(line, _that._maxTextWidths.Length - 1)];
1139Math.Min(textSourcePosition + line.Length - 1, _that._text.Length - 1)
1651int x1 = Math.Min(enumerator.Position + enumerator.Length, startIndex + count);
PresentationFramework (129)
MS\Internal\Documents\TextBoxView.cs (12)
697int startOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, startPosition.Offset);
698int endOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, endPosition.Offset);
706lastLineIndex = Math.Min(lastLineIndex, GetLineIndexFromOffset(endOffset, LogicalDirection.Backward));
775int nextLineIndex = Math.Max(0, Math.Min(_lineMetrics.Count - 1, lineIndex + count));
1938int endOffset = Math.Min(range.StartIndex + range.PositionsAdded, _host.TextContainer.SymbolCount);
2050int endOffset = Math.Min(_lineMetrics[lineIndex].EndOffset, unclippedEndOffset);
2146int endOffset = Math.Min(lineEndOffset, unclippedEndOffset);
2208firstLineIndex = Math.Max(0, Math.Min(firstLineIndex, _lineMetrics.Count - 1));
2209lastLineIndex = Math.Max(0, Math.Min(lastLineIndex, _lineMetrics.Count - 1));
2715int lineCount = Math.Min(oldLastLineIndex, firstLineIndex + count - 1) - lineIndex + 1;
2815count = Math.Min(count, _viewportLineVisuals.Count - start);
2994int rangeSize = Math.Min(viewportEnd, selectionEnd) - rangeStart;
MS\Internal\PtsHost\TextParaClient.cs (8)
749int dcpEnd = Math.Min(cpEndTextPointer, cpParagraphEnd) - cpParagraphStart;
1414int countVisualsShiftBeforeChange = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual, 0), lineVisuals.Count);
1431int actualLinesToRemove = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual + cLinesToRemove, 0), lineVisuals.Count);
1459int actualLinesToRemove = Math.Min(cLinesToRemove, lineVisuals.Count - (lineIndexToBeginRemoval - _lineIndexFirstVisual));
1882int cchRangeForThisLine = Math.Max(Math.Min(lineDesc.dcpLim, dcpEnd) - dcpRangeStartForThisLine, 1);
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));
System\Windows\Controls\DataGrid.cs (7)
2650indexToSelect = Math.Min(Items.Count - numSelected - 1, indexToSelect);
5092int previousStartIndex = Math.Min(startIndex, currentCellIndex);
5094int previousStartColumnIndex = Math.Min(startColumnIndex, currentCellColumnIndex);
5135_selectedCells.AddRegion(Math.Min(startIndex, endIndex), Math.Min(startColumnIndex, endColumnIndex), newRowCount, newColumnCount);
5999index = Math.Max(0, Math.Min(numItems - 1, index + (shiftModifier ? -1 : 1)));
6144targetIndex = Math.Max(0, Math.Min(targetIndex, Items.Count - 1));
ReachFramework (6)
SignalRSamples (1)
Sockets.FunctionalTests (3)
Swaggatherer (1)
System.Collections (2)
System.Collections.Concurrent (1)
System.Collections.Immutable (2)
System.ComponentModel.TypeConverter (1)
System.Data.Common (20)
System\Data\SQLTypes\SQLDecimal.cs (8)
1261ResPrec = Math.Min(MaxPrecision, ResPrec);
1465ResScale = Math.Min((ResPrec - ResInteger), ResScale);
1467ResScale = Math.Max(ResScale, Math.Min(ActualScale, s_cNumeDivScaleMin));
1691MinScale = Math.Min(ResScale, s_cNumeDivScaleMin);
1693ResInteger = Math.Min(ResInteger, s_NUMERIC_MAX_PRECISION);
1700ResScale = Math.Min((ResPrec - ResInteger), ResScale);
2297bNewPrec = (byte)(Math.Min(s_NUMERIC_MAX_PRECISION, Math.Max(1, lAdjust + _bPrec)));
3168lPosition = Math.Min(s_NUMERIC_MAX_PRECISION, lPosition);
System.Diagnostics.DiagnosticSource (2)
System.Diagnostics.Process (1)
System.Drawing.Primitives (4)
System.Formats.Asn1 (3)
System.Formats.Tar (2)
System.IO.Compression (3)
System.IO.Pipelines (4)
System.Linq (9)
System.Linq.Expressions (1)
System.Linq.Parallel (4)
System.Memory (2)
System.Memory.Data (1)
System.Net.Http (21)
System.Net.HttpListener (5)
System.Net.Mail (4)
System.Net.NameResolution (1)
System.Net.Ping (1)
System.Net.Primitives (4)
System.Net.Quic (5)
System.Net.Security (6)
System.Net.Sockets (2)
System.Net.WebClient (1)
System.Net.WebSockets (1)
System.Private.CoreLib (85)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (5)
464FormatDigits(ref result, hour12, Math.Min(tokenLen, 2));
469FormatDigits(ref result, dateTime.Hour, Math.Min(tokenLen, 2));
474FormatDigits(ref result, dateTime.Minute, Math.Min(tokenLen, 2));
479FormatDigits(ref result, dateTime.Second, Math.Min(tokenLen, 2));
638FormatDigits(ref result, year, Math.Min(tokenLen, 2));
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (12)
159capacity = Math.Min(DefaultCapacity, maxCapacity);
207persistedCapacity = Math.Min(Math.Max(DefaultCapacity, persistedString.Length), persistedMaxCapacity);
417int capacityToPreserve = Math.Min(Capacity, Math.Max(Length * 6 / 5, m_ChunkChars.Length));
845int length = Math.Min(m_ChunkChars.Length - m_ChunkLength, count);
849length = Math.Min(m_ChunkChars.Length - m_ChunkLength, count);
908chunkEndIndex = Math.Min(chunkEndIndex, chunk.m_ChunkLength);
2108ReadOnlySpan<char> remainingChunk = chunk.m_ChunkChars.AsSpan(indexInChunk, Math.Min(chunk.m_ChunkLength - indexInChunk, count));
2144Debug.Assert(oldValue.Length > Math.Min(count, chunk.m_ChunkLength - indexInChunk),
2231int endInChunk = Math.Min(chunk.m_ChunkLength, endIndexInChunk);
2475int lengthToCopy = Math.Min(lengthInChunk, count);
2561int newBlockLength = Math.Max(minBlockCharCount, Math.Min(Length, MaxChunkSize));
2673int copyCount1 = Math.Min(count, indexInChunk);
System.Private.DataContractSerialization (36)
System\Xml\XmlBaseReader.cs (6)
1148actual = Math.Min(count, value.Length);
1178return ReadBytes(DataContractSerializer.Base64Encoding, 3, 4, buffer, offset, Math.Min(count, 512), false);
1370return ReadBytes(DataContractSerializer.Base64Encoding, 3, 4, buffer, offset, Math.Min(count, 512), true);
1390return ReadBytes(DataContractSerializer.BinHexEncoding, 1, 2, buffer, offset, Math.Min(count, 512), true);
1425int actual = Math.Min(_trailByteCount, byteCount);
1493int actual = Math.Min(_trailByteCount, byteCount);
System\Xml\XmlBinaryReader.cs (10)
1240int actual = Math.Min(count, _arrayCount);
1263int actual = Math.Min(count, _arrayCount);
1286int actual = Math.Min(count, _arrayCount);
1309int actual = Math.Min(count, _arrayCount);
1332int actual = Math.Min(count, _arrayCount);
1355int actual = Math.Min(count, _arrayCount);
1378int actual = Math.Min(count, _arrayCount);
1402int actual = Math.Min(count, _arrayCount);
1431int actual = Math.Min(count, _arrayCount);
1467int actual = Math.Min(count, _arrayCount);
System.Private.Xml (9)
System.Reflection.Emit (1)
System.Reflection.Metadata (17)
System.Runtime.Caching (5)
System.Runtime.Numerics (8)
System.Runtime.Serialization.Formatters (2)
System.Security.Cryptography (8)
System.Text.Json (9)
System.Text.RegularExpressions (12)
System.Text.RegularExpressions.Generator (13)
System.Threading (2)
System.Threading.Channels (1)
System.Threading.Tasks.Dataflow (1)
System.Threading.Tasks.Parallel (1)
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (12)
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));
UIAutomationClientSideProviders (10)
UIAutomationTypes (2)
WasmAppBuilder (1)
WindowsFormsIntegration (4)