Target TerraFX.Interop.Windows to .NET Standard 2.0
このコミットが含まれているのは:
1 親
22a12e0e5d
コミット
9c6826dbda
190ファイル変更
+4588
-4374
検索条件に一致するファイルはありません
@@ -0,0 +1,23 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace System;
|
||||
|
||||
/// <summary>
|
||||
/// A polyfill type with extensions for <see cref="nint"/> and <see cref="nuint"/>.
|
||||
/// </summary>
|
||||
internal static class IntPtrExtensions
|
||||
{
|
||||
/// <inheritdoc cref="IComparable{T}.CompareTo(T?)"/>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static int CompareTo(this nint left, nint right)
|
||||
{
|
||||
return left.CompareTo(right);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IComparable{T}.CompareTo(T?)"/>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static int CompareTo(this nuint left, nuint right)
|
||||
{
|
||||
return left.CompareTo(right);
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする