60 references to Abs
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (1)
229AppendNanoseconds(builder, Math.Abs(nanos));
Microsoft.AspNetCore.Grpc.Swagger (1)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (1)
229AppendNanoseconds(builder, Math.Abs(nanos));
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
861return Math.Abs((int)result);
Microsoft.Extensions.Options.SourceGeneration (1)
OptionsSourceGenContext.cs (1)
80return Math.Abs((int)result);
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSSignatureContext.cs (1)
58int typesHash = Math.Abs((int)hash);
PresentationCore (9)
MS\Internal\AnimatedTypeHelpers.cs (3)
371return Math.Abs((Int32)to - (Int32)from); 409return Math.Abs(to - from); 414return Math.Abs(to - from);
MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (1)
111ull = (ulong)Math.Abs(Value);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (1)
290int rightShiftNextByteBy = Math.Abs((countOfBits - _cbitsInPartialByte) - Native.BitsPerByte);
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
1292int elapsedTime = Math.Abs(unchecked(stylusDownEventArgs.Timestamp - _lastTapTimeTicks));
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
209if (context.QueuedInRangeCount > 0 || (Math.Abs(unchecked(timestamp - context.LastInRangeTime)) <= 500))
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
1090int timeSpan = Math.Abs(unchecked(stylusDownEventArgs.Timestamp - stylusDevice.LastTapTime)); 3251if (Math.Abs(unchecked(timestamp - _lastInRangeTime)) <= 500)
PresentationFramework (28)
MS\Internal\Documents\DocumentGrid.cs (1)
323if (Math.Abs(pageNumber - _firstVisiblePageNumber) > 1)
MS\Internal\Documents\DocumentPageTextView.cs (2)
655while (Math.Abs(pagesMoved) < Math.Abs(count))
MS\Internal\Documents\MultiPageTextView.cs (8)
762Invariant.Assert(Math.Abs(request.NewCount) >= Math.Abs(linesMoved)); 834Invariant.Assert(Math.Abs(request.NewCount) >= Math.Abs(pagesMoved)); 982Invariant.Assert(Math.Abs(pagesMoved) <= Math.Abs(count)); 1195int closestDistance = Math.Abs(count); 1220int distance = Math.Abs(currentPageNumber - pageNumber);
MS\Internal\PtsHost\TableParaClient.cs (6)
652int du = Math.Min(Math.Abs(rect.u - u), Math.Abs(rect.u + rect.du - u)); 653int dv = Math.Min(Math.Abs(rect.v - v), Math.Abs(rect.v + rect.dv - v)); 1001int iDistance = Math.Abs((cpc.Rect.u + cpc.Rect.du / 2) - suggestedU); 1077int iDistance = Math.Abs((cpc.Rect.u + cpc.Rect.du / 2) - suggestedU);
System\Windows\Application.cs (1)
2371if (Math.Abs(diff) == 1)
System\Windows\Controls\DataGrid.cs (4)
5073int newRowCount = Math.Abs(endIndex - startIndex) + 1; 5074int newColumnCount = Math.Abs(endColumnIndex - startColumnIndex) + 1; 5093int previousRowCount = Math.Abs(currentCellIndex - startIndex) + 1; 5095int previousColumnCount = Math.Abs(currentCellColumnIndex - startColumnIndex) + 1;
System\Windows\Controls\ScrollViewer.cs (1)
1853if (Math.Abs(Environment.TickCount - _panningInfo.InertiaBoundaryBeginTimestamp) < PanningInfo.InertiaBoundryMinimumTicks)
System\Windows\Controls\TextRangeAdaptor.cs (1)
995int absCount = (count == int.MinValue) ? int.MaxValue : Math.Abs(count);
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1039distance = Math.Abs(distance);
System\Windows\Documents\FlowPosition.cs (1)
315distance = Math.Abs(distance);
System\Windows\Documents\TextRangeEditTables.cs (1)
1428int cCols = Math.Abs(columnCount);
System\Windows\SystemFonts.cs (1)
1017return (double)(Math.Abs(height) * 96 / dpi);
System.Data.Common (2)
System\Data\SQLTypes\SQLDecimal.cs (2)
3186int lAdjust = Math.Abs(lPosition - n._bScale); // Precision adjustment 3225lAdjust = Math.Abs(lPosition - n._bScale);
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
102int engineIndex = Math.Abs(Interlocked.Increment(ref s_allocateFromEngine) % s_engines.Length);
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\TensorPrimitives.CopySign.cs (3)
67Math.Abs(int.MinValue); // throw OverflowException 95Math.Abs(int.MinValue); // throw OverflowException 123Math.Abs(int.MinValue); // throw OverflowException
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (1)
99realLength = Math.Abs(realLength);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
718public static int Abs(int value) => Math.Abs(value);
src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (1)
1006int fastExponent = Math.Abs(exponent);
src\libraries\System.Private.CoreLib\src\System\Random.Net5CompatImpl.cs (1)
264int subtraction = (seed == int.MinValue) ? int.MaxValue : Math.Abs(seed);
System.Private.DataContractSerialization (2)
System\Xml\XmlConverter.cs (2)
1073offset += ToCharsD2(Math.Abs(ts.Hours), chars, offset); 1075offset += ToCharsD2(Math.Abs(ts.Minutes), chars, offset);
System.Private.Xml (1)
System\Xml\Xsl\XPathConvert.cs (1)
1042(idx == mantissaSize - 1) && Math.Abs(mantissa[idx] - mantissaPrec[idx]) <= 1
System.Runtime.Caching (2)
System\Runtime\Caching\CacheUsage.cs (2)
28Debug.Assert((Math.Abs(entryIndex) & ENTRY_MASK) == (Math.Abs(entryIndex)), "(Math.Abs(entryIndex) & ENTRY_MASK) == Math.Abs(entryIndex)");
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
427int cat = Math.Abs((int)categoryCode) - 1;
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
661int height = Math.Abs(_provider.GetLogfont().lfHeight);;
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2324cMoves = Math.Abs (cMoves);