Skip to content

Latest commit

 

History

History
1834 lines (1392 loc) · 266 KB

api_list.include.md

File metadata and controls

1834 lines (1392 loc) · 266 KB

Extension methods

ArgumentException

Requires <PolyArgumentExceptions>true</PolyArgumentExceptions> in the consuming project.

  • void ThrowIfNullOrEmpty(string?) reference
  • void ThrowIfNullOrWhiteSpace(string?) reference

ArgumentNullException

Requires <PolyArgumentExceptions>true</PolyArgumentExceptions> in the consuming project.

ArgumentOutOfRangeException

Requires <PolyArgumentExceptions>true</PolyArgumentExceptions> in the consuming project.

  • void ThrowIfEqual<T>(T, T) where T : IEquatable<T>? reference
  • void ThrowIfGreaterThan(nint, nint)
  • void ThrowIfGreaterThan<T>(T, T) where T : IComparable<T> reference
  • void ThrowIfGreaterThanOrEqual(nint, nint)
  • void ThrowIfGreaterThanOrEqual<T>(T, T) where T : IComparable<T> reference
  • void ThrowIfLessThan(nint, nint)
  • void ThrowIfLessThan<T>(T, T) where T : IComparable<T> reference
  • void ThrowIfLessThanOrEqual(nint, nint)
  • void ThrowIfLessThanOrEqual<T>(T, T) where T : IComparable<T> reference
  • void ThrowIfNegative(nint) reference
  • void ThrowIfNegative<T>(T) where T : struct, IComparable<T> reference
  • void ThrowIfNegativeOrZero(nint)
  • void ThrowIfNegativeOrZero<T>(T) where T : struct, IComparable<T> reference
  • void ThrowIfNotEqual<T>(T, T) where T : IEquatable<T>? reference
  • void ThrowIfZero(nint)
  • void ThrowIfZero<T>(T) where T : struct, IEquatable<T> reference

ArrayBufferWriter

  • void ResetWrittenCount<T>() reference
    • Note: Delegates to Clear(), so the written region is zeroed: O(n) where the BCL is O(1), and the reclaimed space is zeroed instead of holding the stale data the BCL leaves behind.

ArraySegment

Base64

  • OperationStatus DecodeFromChars(ReadOnlySpan<char>, Span<byte>, int, int, bool) reference
  • int DecodeFromChars(ReadOnlySpan<char>, Span<byte>) reference
  • byte[] DecodeFromChars(ReadOnlySpan<char>) reference
  • byte[] DecodeFromUtf8(ReadOnlySpan<byte>) reference
  • OperationStatus EncodeToChars(ReadOnlySpan<byte>, Span<char>, int, int, bool) reference
  • int EncodeToChars(ReadOnlySpan<byte>, Span<char>) reference
  • char[] EncodeToChars(ReadOnlySpan<byte>) reference
  • string EncodeToString(ReadOnlySpan<byte>) reference
  • byte[] EncodeToUtf8(ReadOnlySpan<byte>) reference
  • int GetEncodedLength(int) reference
  • int GetMaxDecodedLength(int) reference
  • bool TryDecodeFromChars(ReadOnlySpan<char>, Span<byte>, int) reference
  • bool TryEncodeToChars(ReadOnlySpan<byte>, Span<char>, int) reference

BigInteger

  • BigInteger Parse(ReadOnlySpan<byte>, IFormatProvider?) reference
  • BigInteger Parse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?) reference
  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryParse(ReadOnlySpan<byte>, BigInteger) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, BigInteger) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, BigInteger) reference

BinaryPrimitives

  • double ReadDoubleBigEndian(ReadOnlySpan<byte>) reference
  • double ReadDoubleLittleEndian(ReadOnlySpan<byte>) reference
  • float ReadSingleBigEndian(ReadOnlySpan<byte>) reference
  • float ReadSingleLittleEndian(ReadOnlySpan<byte>) reference
  • bool TryReadDoubleBigEndian(ReadOnlySpan<byte>, double) reference
  • bool TryReadDoubleLittleEndian(ReadOnlySpan<byte>, double) reference
  • bool TryReadSingleBigEndian(ReadOnlySpan<byte>, float) reference
  • bool TryReadSingleLittleEndian(ReadOnlySpan<byte>, float) reference
  • bool TryWriteDoubleBigEndian(Span<byte>, double) reference
  • bool TryWriteDoubleLittleEndian(Span<byte>, double) reference
  • bool TryWriteSingleBigEndian(Span<byte>, float) reference
  • bool TryWriteSingleLittleEndian(Span<byte>, float) reference
  • void WriteDoubleBigEndian(Span<byte>, double) reference
  • void WriteDoubleLittleEndian(Span<byte>, double) reference
  • void WriteSingleBigEndian(Span<byte>, float) reference
  • void WriteSingleLittleEndian(Span<byte>, float) reference

BitArray

BitConverter

  • ulong DoubleToUInt64Bits(double) reference
  • byte[] GetBytes(Half) reference
    • Note: Only available on net5.0 and later, since Half does not exist below that.
  • byte[] GetBytes(Int128) reference
  • byte[] GetBytes(UInt128) reference
  • short HalfToInt16Bits(Half) reference
    • Note: Only available on net5.0 and later, since Half does not exist below that.
  • ushort HalfToUInt16Bits(Half) reference
    • Note: Only available on net5.0 and later, since Half does not exist below that.
  • Half Int16BitsToHalf(short) reference
    • Note: Only available on net5.0 and later, since Half does not exist below that.
  • float Int32BitsToSingle(int) reference
  • int SingleToInt32Bits(float) reference
  • uint SingleToUInt32Bits(float) reference
  • bool ToBoolean(ReadOnlySpan<byte>) reference
  • char ToChar(ReadOnlySpan<byte>) reference
  • double ToDouble(ReadOnlySpan<byte>) reference
  • Half ToHalf(byte[], int) reference
    • Note: Only available on net5.0 and later, since Half does not exist below that.
  • Half ToHalf(ReadOnlySpan<byte>) reference
    • Note: Only available on net5.0 and later, since Half does not exist below that.
  • Int128 ToInt128(byte[], int) reference
  • Int128 ToInt128(ReadOnlySpan<byte>) reference
  • short ToInt16(ReadOnlySpan<byte>) reference
  • int ToInt32(ReadOnlySpan<byte>) reference
  • long ToInt64(ReadOnlySpan<byte>) reference
  • float ToSingle(ReadOnlySpan<byte>) reference
  • UInt128 ToUInt128(byte[], int) reference
  • UInt128 ToUInt128(ReadOnlySpan<byte>) reference
  • ushort ToUInt16(ReadOnlySpan<byte>) reference
  • uint ToUInt32(ReadOnlySpan<byte>) reference
  • ulong ToUInt64(ReadOnlySpan<byte>) reference
  • bool TryWriteBytes(Span<byte>, bool) reference
  • bool TryWriteBytes(Span<byte>, char) reference
  • bool TryWriteBytes(Span<byte>, double) reference
  • bool TryWriteBytes(Span<byte>, float) reference
  • bool TryWriteBytes(Span<byte>, Half) reference
    • Note: Only available on net5.0 and later, since Half does not exist below that.
  • bool TryWriteBytes(Span<byte>, int) reference
  • bool TryWriteBytes(Span<byte>, Int128) reference
  • bool TryWriteBytes(Span<byte>, long) reference
  • bool TryWriteBytes(Span<byte>, short) reference
  • bool TryWriteBytes(Span<byte>, uint) reference
  • bool TryWriteBytes(Span<byte>, UInt128) reference
  • bool TryWriteBytes(Span<byte>, ulong) reference
  • bool TryWriteBytes(Span<byte>, ushort) reference
  • Half UInt16BitsToHalf(ushort) reference
    • Note: Only available on net5.0 and later, since Half does not exist below that.
  • float UInt32BitsToSingle(uint) reference
  • double UInt64BitsToDouble(ulong) reference

Boolean

Byte

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • byte Log10(byte) reference
  • bool TryParse(ReadOnlySpan<byte>, byte) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, byte) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, byte) reference
  • bool TryParse(ReadOnlySpan<char>, byte) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, byte) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, byte) reference
  • bool TryParse(string?, IFormatProvider?, byte) reference

CancellationToken

  • CancellationTokenRegistration Register(Action<object?, CancellationToken>, object?) reference
  • CancellationTokenRegistration UnsafeRegister(Action<object?, CancellationToken>, object?) reference
  • CancellationTokenRegistration UnsafeRegister(Action<object?>, object?) reference

CancellationTokenSource

Capture

Char

  • bool Equals(char, StringComparison) reference
  • bool IsAscii(char) reference
  • bool IsAsciiDigit(char) reference
  • bool IsAsciiHexDigit(char) reference
  • bool IsAsciiHexDigitLower(char) reference
  • bool IsAsciiHexDigitUpper(char) reference
  • bool IsAsciiLetter(char) reference
  • bool IsAsciiLetterLower(char) reference
  • bool IsAsciiLetterOrDigit(char) reference
  • bool IsAsciiLetterUpper(char) reference
  • bool IsBetween(char, char, char) reference
  • char ToLowerOrdinal(char) reference
    • Note: Derived from invariant casing, so the mapping follows the Unicode version of the running framework rather than the one net11 is built against.
  • char ToUpperOrdinal(char) reference
    • Note: Derived from invariant casing, so the mapping follows the Unicode version of the running framework rather than the one net11 is built against.

Complex

  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, Complex) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, Complex) reference
    • Note: The matching Parse(ReadOnlySpan, ...) overloads are not polyfilled, since they would collide with BigInteger.Parse(ReadOnlySpan, ...); two static extension members with the same signature cannot coexist on one class.

ConcurrentBag

ConcurrentDictionary<TKey, TValue>

  • TValue GetOrAdd<TKey, TValue, TArg>(TKey, Func<TKey, TArg, TValue>, TArg) where TKey : notnull reference

ConcurrentQueue

ConditionalWeakTable<TKey, TValue>

  • bool Remove<TKey, TValue>(TKey, TValue) where TKey : class where TValue : class reference
    • Note: Lookup and removal are not performed under the table lock, so the operation is not atomic with regard to concurrent mutations.

Console

  • SafeFileHandle OpenStandardErrorHandle() reference
  • SafeFileHandle OpenStandardInputHandle() reference
  • SafeFileHandle OpenStandardOutputHandle() reference

Convert

  • OperationStatus FromHexString(ReadOnlySpan<byte>, Span<byte>, int, int) reference
  • byte[] FromHexString(ReadOnlySpan<byte>) reference
  • OperationStatus FromHexString(ReadOnlySpan<char>, Span<byte>, int, int) reference
  • byte[] FromHexString(ReadOnlySpan<char>) reference
  • OperationStatus FromHexString(string, Span<byte>, int, int) reference
  • byte[] FromHexString(string) reference
  • string ToHexString(byte[], int, int) reference
  • string ToHexString(byte[]) reference
  • string ToHexString(ReadOnlySpan<byte>) reference
  • string ToHexStringLower(byte[], int, int) reference
  • string ToHexStringLower(byte[]) reference
  • string ToHexStringLower(ReadOnlySpan<byte>) reference
  • bool TryFromBase64Chars(ReadOnlySpan<char>, Span<byte>, int) reference
  • bool TryFromBase64String(string, Span<byte>, int) reference
  • bool TryToBase64Chars(ReadOnlySpan<byte>, Span<char>, int, Base64FormattingOptions) reference
  • bool TryToHexString(ReadOnlySpan<byte>, Span<byte>, int) reference
  • bool TryToHexString(ReadOnlySpan<byte>, Span<char>, int) reference
  • bool TryToHexStringLower(ReadOnlySpan<byte>, Span<byte>, int) reference
  • bool TryToHexStringLower(ReadOnlySpan<byte>, Span<char>, int) reference

DateOnly

  • void Deconstruct(int, int, int) reference
  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference

DateTime

  • DateTime AddMicroseconds(double) reference
  • void Deconstruct(DateOnly, TimeOnly) reference
  • void Deconstruct(int, int, int) reference
  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryParse(ReadOnlySpan<char>, DateTime) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, DateTime) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, DateTimeStyles, DateTime) reference
  • bool TryParse(string?, IFormatProvider?, DateTime) reference
  • bool TryParseExact(ReadOnlySpan<char>, ReadOnlySpan<char>, IFormatProvider?, DateTimeStyles, DateTime) reference
  • bool TryParseExact(ReadOnlySpan<char>, string, IFormatProvider?, DateTimeStyles, DateTime) reference
  • int Microsecond reference
  • int Nanosecond reference

DateTimeOffset

  • DateTimeOffset AddMicroseconds(double) reference
  • void Deconstruct(DateOnly, TimeOnly, TimeSpan) reference
  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryParse(ReadOnlySpan<char>, DateTimeOffset) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, DateTimeOffset) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, DateTimeStyles, DateTimeOffset) reference
  • bool TryParse(string?, IFormatProvider?, DateTimeOffset) reference
  • bool TryParseExact(ReadOnlySpan<char>, ReadOnlySpan<char>, IFormatProvider?, DateTimeStyles, DateTimeOffset) reference
  • bool TryParseExact(ReadOnlySpan<char>, string, IFormatProvider?, DateTimeStyles, DateTimeOffset) reference
  • int Microsecond reference
  • int Nanosecond reference

Decimal

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryParse(ReadOnlySpan<byte>, decimal) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, decimal) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, decimal) reference
  • bool TryParse(ReadOnlySpan<char>, decimal) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, decimal) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, decimal) reference
  • bool TryParse(string?, IFormatProvider?, decimal) reference

DefaultInterpolatedStringHandler

Delegate

  • InvocationListEnumerator<TDelegate> EnumerateInvocationList<TDelegate>(TDelegate?) where TDelegate : Delegate reference
  • bool HasSingleTarget reference

Dictionary<TKey, TValue>

  • void EnsureCapacity<TKey, TValue>(int) reference
    • Note: No-op on older targets; the BCL grows the backing storage.
  • DictionaryAlternateLookup<TKey, TValue, TAlternateKey> GetAlternateLookup<TKey, TValue, TAlternateKey>() where TKey : notnull reference
    • Note: Lookups are O(n) on older targets; the BCL is O(1).
    • Note: Returns the free-standing DictionaryAlternateLookup<TKey, TValue, TAlternateKey> rather than the BCL's nested Dictionary<TKey, TValue>.AlternateLookup<TAlternateKey>. Use var for cross-target code.
  • void TrimExcess<TKey, TValue>(int) reference
    • Note: No-op on older targets; the BCL shrinks the backing storage.
  • void TrimExcess<TKey, TValue>() reference
    • Note: No-op on older targets; the BCL shrinks the backing storage.
  • bool TryGetAlternateLookup<TKey, TValue, TAlternateKey>(DictionaryAlternateLookup<TKey, TValue, TAlternateKey>) where TKey : notnull reference
    • Note: Lookups are O(n) on older targets; the BCL is O(1).

DictionaryEntry

  • void Deconstruct(object, object?) reference

Directory

  • DirectoryInfo CreateTempSubdirectory(string?) reference
  • IEnumerable<string> EnumerateDirectories(string, string, EnumerationOptions) reference
  • IEnumerable<string> EnumerateFiles(string, string, EnumerationOptions) reference
  • IEnumerable<string> EnumerateFileSystemEntries(string, string, EnumerationOptions) reference
  • string[] GetDirectories(string, string, EnumerationOptions) reference
  • string[] GetFiles(string, string, EnumerationOptions) reference
  • string[] GetFileSystemEntries(string, string, EnumerationOptions) reference

DirectoryInfo

  • IEnumerable<DirectoryInfo> EnumerateDirectories(string, EnumerationOptions) reference
  • IEnumerable<FileInfo> EnumerateFiles(string, EnumerationOptions) reference
  • IEnumerable<FileSystemInfo> EnumerateFileSystemInfos(string, EnumerationOptions) reference
  • DirectoryInfo[] GetDirectories(string, EnumerationOptions) reference
  • FileInfo[] GetFiles(string, EnumerationOptions) reference
  • FileSystemInfo[] GetFileSystemInfos(string, EnumerationOptions) reference

Double

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryParse(ReadOnlySpan<byte>, double) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, double) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, double) reference
  • bool TryParse(ReadOnlySpan<char>, double) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, double) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, double) reference
  • bool TryParse(string?, IFormatProvider?, double) reference

Encoder

  • void Convert(ReadOnlySpan<char>, Span<byte>, bool, int, int, bool) reference

Encoding

  • int GetByteCount(ReadOnlySpan<char>) reference
  • int GetBytes(ReadOnlySpan<char>, Span<byte>) reference
  • int GetCharCount(ReadOnlySpan<byte>) reference
  • int GetChars(ReadOnlySpan<byte>, Span<char>) reference
  • string GetString(ReadOnlySpan<byte>) reference
  • bool TryGetBytes(ReadOnlySpan<char>, Span<byte>, int) reference
  • bool TryGetChars(ReadOnlySpan<byte>, Span<char>, int) reference
  • Encoding Latin1 reference
  • ReadOnlySpan<byte> Preamble reference
    • Note: Allocates a new array on each access, unlike the BCL property which returns a cached span.

Enum

  • string[] GetNames<TEnum>() where TEnum : struct, Enum reference
  • TEnum[] GetValues<TEnum>() where TEnum : struct, Enum reference
  • Array GetValuesAsUnderlyingType(Type) reference
  • Array GetValuesAsUnderlyingType<TEnum>() where TEnum : struct, Enum reference
  • bool IsDefined<TEnum>(TEnum) where TEnum : struct, Enum reference
  • TEnum Parse<TEnum>(ReadOnlySpan<char>, bool) where TEnum : struct, Enum reference
  • TEnum Parse<TEnum>(ReadOnlySpan<char>) where TEnum : struct, Enum reference
  • TEnum Parse<TEnum>(string, bool) where TEnum : struct, Enum reference
  • TEnum Parse<TEnum>(string) where TEnum : struct, Enum reference
  • bool TryFormat<TEnum>(TEnum, Span<char>, int, ReadOnlySpan<char>) where TEnum : struct, Enum reference
  • bool TryParse<TEnum>(ReadOnlySpan<char>, bool, TEnum) where TEnum : struct, Enum reference
  • bool TryParse<TEnum>(ReadOnlySpan<char>, TEnum) where TEnum : struct, Enum reference

Enumerable

  • IEnumerable<T> InfiniteSequence<T>(T, T) where T : IAdditionOperators<T, T, T> reference
  • IEnumerable<T> Sequence<T>(T, T, T) where T : INumber<T> reference

Environment

EqualityComparer

  • EqualityComparer<T> Create(Func<T?, T?, bool>, Func<T, int>?) reference
  • EqualityComparer<T> Create<TKey>(Func<T?, TKey?>, IEqualityComparer<TKey>?) reference

EventInfo

  • NullabilityState GetNullability()
  • NullabilityInfo GetNullabilityInfo()
  • bool IsNullable()

ExceptionDispatchInfo

  • Exception SetCurrentStackTrace(Exception) reference

FieldInfo

  • NullabilityState GetNullability()
  • NullabilityInfo GetNullabilityInfo()
  • bool IsNullable()

File

  • void AppendAllBytes(string, byte[]) reference
  • void AppendAllBytes(string, ReadOnlySpan<byte>) reference
  • Task AppendAllBytesAsync(string, byte[], CancellationToken) reference
  • Task AppendAllBytesAsync(string, ReadOnlyMemory<byte>, CancellationToken) reference
  • Task AppendAllLinesAsync(string, IEnumerable<string>, CancellationToken) reference
  • Task AppendAllLinesAsync(string, IEnumerable<string>, Encoding, CancellationToken) reference
  • void AppendAllText(string, ReadOnlySpan<char>, Encoding) reference
  • void AppendAllText(string, ReadOnlySpan<char>) reference
  • Task AppendAllTextAsync(string, ReadOnlyMemory<char>, CancellationToken) reference
  • Task AppendAllTextAsync(string, ReadOnlyMemory<char>, Encoding, CancellationToken) reference
  • Task AppendAllTextAsync(string, string?, CancellationToken) reference
  • Task AppendAllTextAsync(string, string?, Encoding, CancellationToken) reference
  • FileSystemInfo CreateHardLink(string, string) reference
  • void Move(string, string, bool) reference
  • SafeFileHandle OpenNullHandle() reference
  • Task<byte[]> ReadAllBytesAsync(string, CancellationToken) reference
  • Task<string[]> ReadAllLinesAsync(string, CancellationToken) reference
  • Task<string[]> ReadAllLinesAsync(string, Encoding, CancellationToken) reference
  • Task<string> ReadAllTextAsync(string, CancellationToken) reference
  • Task<string> ReadAllTextAsync(string, Encoding, CancellationToken) reference
  • IAsyncEnumerable<string> ReadLinesAsync(string, CancellationToken) reference
  • IAsyncEnumerable<string> ReadLinesAsync(string, Encoding, CancellationToken) reference
  • void WriteAllBytes(string, ReadOnlySpan<byte>) reference
    • Note: Copies the span to an array and uses the array overload, so this allocates where the BCL writes straight from the span.
    • Note: Only reached when the argument is already a ReadOnlySpan. A byte array binds to the BCL array overload, exactly as it does without Polyfill.
  • Task WriteAllBytesAsync(string, byte[], CancellationToken) reference
  • Task WriteAllBytesAsync(string, ReadOnlyMemory<byte>, CancellationToken) reference
  • Task WriteAllLinesAsync(string, IEnumerable<string>, CancellationToken) reference
  • Task WriteAllLinesAsync(string, IEnumerable<string>, Encoding, CancellationToken) reference
  • void WriteAllText(string, ReadOnlySpan<char>, Encoding) reference
  • void WriteAllText(string, ReadOnlySpan<char>) reference
  • Task WriteAllTextAsync(string, string?, CancellationToken) reference
  • Task WriteAllTextAsync(string, string?, Encoding, CancellationToken) reference

FileInfo

FileUnixMode

  • UnixFileMode GetUnixFileMode(string) reference
  • void SetUnixFileMode(string, UnixFileMode) reference

GC

  • T[] AllocateUninitializedArray<T>(int, bool) reference

Guid

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>) reference
  • int Variant reference
  • int Version reference
  • Guid CreateVersion7() reference
  • Guid CreateVersion7(DateTimeOffset) reference
  • Guid Parse(ReadOnlySpan<byte>) reference
  • bool TryParse(ReadOnlySpan<byte>, Guid) reference
  • bool TryParse(ReadOnlySpan<char>, Guid) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, Guid) reference
  • bool TryParse(string?, IFormatProvider?, Guid) reference
  • bool TryParseExact(ReadOnlySpan<char>, ReadOnlySpan<char>, Guid) reference
  • Guid AllBitsSet reference

HashSet

  • void EnsureCapacity<T>(int) reference
    • Note: No-op on older targets; the BCL grows the backing storage.
  • HashSetAlternateLookup<T, TAlternate> GetAlternateLookup<T, TAlternate>() reference
    • Note: Lookups are O(n) on older targets; the BCL is O(1).
    • Note: Returns the free-standing HashSetAlternateLookup<T, TAlternate> rather than the BCL's nested HashSet<T>.AlternateLookup<TAlternate>. Use var for cross-target code.
  • void TrimExcess<T>(int) reference
    • Note: No-op on older targets; the BCL shrinks the backing storage.
  • bool TryGetAlternateLookup<T, TAlternate>(HashSetAlternateLookup<T, TAlternate>) reference
    • Note: Lookups are O(n) on older targets; the BCL is O(1).
  • bool TryGetValue<T>(T, T) reference

HttpClient

  • Task<byte[]> GetByteArrayAsync(string, CancellationToken) reference
  • Task<byte[]> GetByteArrayAsync(Uri, CancellationToken) reference
  • Task<Stream> GetStreamAsync(string, CancellationToken) reference
  • Task<Stream> GetStreamAsync(Uri, CancellationToken) reference
  • Task<string> GetStringAsync(string, CancellationToken) reference
  • Task<string> GetStringAsync(Uri, CancellationToken) reference
  • Task<HttpResponseMessage> PatchAsync(string?, HttpContent?, CancellationToken) reference
  • Task<HttpResponseMessage> PatchAsync(string?, HttpContent?) reference
  • Task<HttpResponseMessage> PatchAsync(Uri?, HttpContent?, CancellationToken) reference
  • Task<HttpResponseMessage> PatchAsync(Uri?, HttpContent?) reference
  • HttpResponseMessage Send(HttpRequestMessage, CancellationToken) reference
  • HttpResponseMessage Send(HttpRequestMessage, HttpCompletionOption, CancellationToken) reference
  • HttpResponseMessage Send(HttpRequestMessage, HttpCompletionOption) reference
  • HttpResponseMessage Send(HttpRequestMessage) reference

HttpContent

  • void CopyTo(Stream, System.Net.TransportContext?, CancellationToken) reference
  • Task CopyToAsync(Stream, CancellationToken) reference
  • Task CopyToAsync(Stream, System.Net.TransportContext?, CancellationToken) reference
  • Task LoadIntoBufferAsync(CancellationToken) reference
  • Task LoadIntoBufferAsync(long, CancellationToken) reference
  • Task<byte[]> ReadAsByteArrayAsync(CancellationToken) reference
  • Stream ReadAsStream(CancellationToken) reference
  • Task<Stream> ReadAsStreamAsync(CancellationToken) reference
  • Task<string> ReadAsStringAsync(CancellationToken) reference

IDictionary<TKey, TValue>

  • ReadOnlyDictionary<TKey, TValue> AsReadOnly<TKey, TValue>() where TKey : notnull reference
  • bool Remove<TKey, TValue>(TKey, TValue) where TKey : notnull reference
  • bool TryAdd<TKey, TValue>(TKey, TValue) where TKey : notnull reference

IEnumerable<KeyValuePair<TKey, TValue>>

  • Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(IEqualityComparer<TKey>?) where TKey : notnull reference

IEnumerable

  • IOrderedEnumerable<T> Order<T>(IComparer<T>?) reference
  • IOrderedEnumerable<T> Order<T>() reference
  • IOrderedEnumerable<T> OrderDescending<T>(IComparer<T>?) reference
  • IOrderedEnumerable<T> OrderDescending<T>() reference

IEnumerable

  • IEnumerable<(TFirst First, TSecond Second, TThird Third)> Zip<TFirst, TSecond, TThird>(IEnumerable<TSecond>, IEnumerable<TThird>) reference
  • IEnumerable<(TFirst First, TSecond Second)> Zip<TFirst, TSecond>(IEnumerable<TSecond>) reference

IEnumerable

  • IEnumerable<TResult> FullJoin<TOuter, TInner, TKey, TResult>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter?, TInner?, TResult>, IEqualityComparer<TKey>?) reference
  • IEnumerable<(TOuter? Outer, TInner? Inner)> FullJoin<TOuter, TInner, TKey>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, IEqualityComparer<TKey>?) reference
  • IEnumerable<IGrouping<TOuter, TInner>> GroupJoin<TOuter, TInner, TKey>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, IEqualityComparer<TKey>?) reference
  • IEnumerable<(TOuter Outer, TInner Inner)> Join<TOuter, TInner, TKey>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, IEqualityComparer<TKey>?) reference
  • IEnumerable<TResult> LeftJoin<TOuter, TInner, TKey, TResult>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, TInner?, TResult>, IEqualityComparer<TKey>?) reference
  • IEnumerable<TResult> LeftJoin<TOuter, TInner, TKey, TResult>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, TInner?, TResult>) reference
  • IEnumerable<(TOuter Outer, TInner? Inner)> LeftJoin<TOuter, TInner, TKey>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, IEqualityComparer<TKey>?) reference
  • IEnumerable<TResult> RightJoin<TOuter, TInner, TKey, TResult>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter?, TInner, TResult>, IEqualityComparer<TKey>?) reference
  • IEnumerable<TResult> RightJoin<TOuter, TInner, TKey, TResult>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter?, TInner, TResult>) reference
  • IEnumerable<(TOuter? Outer, TInner Inner)> RightJoin<TOuter, TInner, TKey>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, IEqualityComparer<TKey>?) reference

IEnumerable

  • IEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(Func<TSource, TKey>, Func<TKey, TAccumulate>, Func<TAccumulate, TSource, TAccumulate>, IEqualityComparer<TKey>?) where TKey : notnull reference
  • IEnumerable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(Func<TSource, TKey>, TAccumulate, Func<TAccumulate, TSource, TAccumulate>, IEqualityComparer<TKey>?) where TKey : notnull reference
  • IEnumerable<TSource> Append<TSource>(TSource) reference
  • IEnumerable<TSource[]> Chunk<TSource>(int) reference
  • IEnumerable<KeyValuePair<TKey, int>> CountBy<TSource, TKey>(Func<TSource, TKey>, IEqualityComparer<TKey>?) where TKey : notnull reference
  • IEnumerable<TSource> DistinctBy<TSource, TKey>(Func<TSource, TKey>, IEqualityComparer<TKey>?) reference
  • IEnumerable<TSource> DistinctBy<TSource, TKey>(Func<TSource, TKey>) reference
  • TSource ElementAt<TSource>(Index) reference
  • TSource? ElementAtOrDefault<TSource>(Index) reference
  • IEnumerable<TSource> Except<TSource>(IEqualityComparer<TSource>?, TSource[]) reference
  • IEnumerable<TSource> Except<TSource>(TSource, IEqualityComparer<TSource>?) reference
  • IEnumerable<TSource> Except<TSource>(TSource) reference
  • IEnumerable<TSource> ExceptBy<TSource, TKey>(IEnumerable<TKey>, Func<TSource, TKey>, IEqualityComparer<TKey>?) reference
  • IEnumerable<TSource> ExceptBy<TSource, TKey>(IEnumerable<TKey>, Func<TSource, TKey>) reference
  • TSource FirstOrDefault<TSource>(Func<TSource, bool>, TSource) reference
  • TSource FirstOrDefault<TSource>(TSource) reference
  • IEnumerable<(int Index, TSource Item)> Index<TSource>() reference
  • IEnumerable<TSource> IntersectBy<TSource, TKey>(IEnumerable<TKey>, Func<TSource, TKey>, IEqualityComparer<TKey>?) reference
  • IEnumerable<TSource> IntersectBy<TSource, TKey>(IEnumerable<TKey>, Func<TSource, TKey>) reference
  • TSource LastOrDefault<TSource>(Func<TSource, bool>, TSource) reference
  • TSource LastOrDefault<TSource>(TSource) reference
  • TSource? Max<TSource>(IComparer<TSource>?) reference
  • TSource? MaxBy<TSource, TKey>(Func<TSource, TKey>, IComparer<TKey>?) reference
  • TSource? MaxBy<TSource, TKey>(Func<TSource, TKey>) reference
  • TSource? Min<TSource>(IComparer<TSource>?) reference
  • TSource? MinBy<TSource, TKey>(Func<TSource, TKey>, IComparer<TKey>?) reference
  • TSource? MinBy<TSource, TKey>(Func<TSource, TKey>) reference
  • IEnumerable<TSource> Prepend<TSource>(TSource) reference
  • TSource SingleOrDefault<TSource>(Func<TSource, bool>, TSource) reference
  • TSource SingleOrDefault<TSource>(TSource) reference
  • IEnumerable<TSource> SkipLast<TSource>(int) reference
  • IEnumerable<TSource> Take<TSource>(Range) reference
  • IEnumerable<TSource> TakeLast<TSource>(int) reference
  • HashSet<TSource> ToHashSet<TSource>(IEqualityComparer<TSource>?) reference
  • bool TryGetNonEnumeratedCount<TSource>(int) reference
  • IEnumerable<TSource> UnionBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>?) reference
  • IEnumerable<TSource> UnionBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>) reference

IList

  • ReadOnlyCollection<T> AsReadOnly<T>() reference

ImmutableDictionary

  • ImmutableDictionary<TKey, TValue> CreateRangeWithOverwrite<TKey, TValue>(IEqualityComparer<TKey>?, ReadOnlySpan<KeyValuePair<TKey, TValue>>) where TKey : notnull reference
    • Note: Only available on netcoreapp2.1 and later, since ImmutableDictionary is a separate package below that.
  • ImmutableDictionary<TKey, TValue> CreateRangeWithOverwrite<TKey, TValue>(ReadOnlySpan<KeyValuePair<TKey, TValue>>) where TKey : notnull reference
    • Note: Only available on netcoreapp2.1 and later, since ImmutableDictionary is a separate package below that.

Int128

Int16

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • short Log10(short) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, short) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, short) reference
  • bool TryParse(ReadOnlySpan<byte>, short) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, short) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, short) reference
  • bool TryParse(ReadOnlySpan<char>, short) reference
  • bool TryParse(string?, IFormatProvider?, short) reference

Int32

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • long BigMul(int, int) reference
  • int Log10(int) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, int) reference
  • bool TryParse(ReadOnlySpan<byte>, int) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, int) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, int) reference
  • bool TryParse(ReadOnlySpan<char>, int) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, int) reference
  • bool TryParse(string?, IFormatProvider?, int) reference

Int64

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • Int128 BigMul(long, long) reference
    • Note: The identical Math.BigMul overload is not polyfilled, since C# emits both static extension members onto the same class and they would collide.
    • Note: Only available on net7.0 and later, since Int128 does not exist below that.
  • long Log10(long) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, long) reference
  • bool TryParse(ReadOnlySpan<byte>, long) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, long) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, long) reference
  • bool TryParse(ReadOnlySpan<char>, long) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, long) reference
  • bool TryParse(string?, IFormatProvider?, long) reference

Interlocked

  • byte CompareExchange(byte, byte, byte) reference
    • Note: Uses a lock rather than a hardware atomic, since no 8 bit interlocked primitive exists below net9. Correct against other Interlocked calls, but a concurrent plain write to the same location can be lost, where the BCL operation is indivisible.
  • sbyte CompareExchange(sbyte, sbyte, sbyte) reference
    • Note: Uses a lock rather than a hardware atomic, since no 8 bit interlocked primitive exists below net9. Correct against other Interlocked calls, but a concurrent plain write to the same location can be lost, where the BCL operation is indivisible.
  • short CompareExchange(short, short, short) reference
    • Note: Uses a lock rather than a hardware atomic, since no 16 bit interlocked primitive exists below net9. Correct against other Interlocked calls, but a concurrent plain write to the same location can be lost, where the BCL operation is indivisible.
  • ushort CompareExchange(ushort, ushort, ushort) reference
    • Note: Uses a lock rather than a hardware atomic, since no 16 bit interlocked primitive exists below net9. Correct against other Interlocked calls, but a concurrent plain write to the same location can be lost, where the BCL operation is indivisible.
  • byte Exchange(byte, byte) reference
    • Note: Uses a lock rather than a hardware atomic, since no 8 bit interlocked primitive exists below net9. Correct against other Interlocked calls, but a concurrent plain write to the same location can be lost, where the BCL operation is indivisible.
  • sbyte Exchange(sbyte, sbyte) reference
    • Note: Uses a lock rather than a hardware atomic, since no 8 bit interlocked primitive exists below net9. Correct against other Interlocked calls, but a concurrent plain write to the same location can be lost, where the BCL operation is indivisible.
  • short Exchange(short, short) reference
    • Note: Uses a lock rather than a hardware atomic, since no 16 bit interlocked primitive exists below net9. Correct against other Interlocked calls, but a concurrent plain write to the same location can be lost, where the BCL operation is indivisible.
  • ushort Exchange(ushort, ushort) reference
    • Note: Uses a lock rather than a hardware atomic, since no 16 bit interlocked primitive exists below net9. Correct against other Interlocked calls, but a concurrent plain write to the same location can be lost, where the BCL operation is indivisible.
  • T And<T>(T, T) where T : struct reference
  • T Or<T>(T, T) where T : struct reference

IntPtr

  • nint BigMul(nint, nint, nint) reference
  • nint Log10(nint) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, nint) reference
  • bool TryParse(ReadOnlySpan<byte>, nint) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, nint) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, nint) reference
  • bool TryParse(ReadOnlySpan<char>, nint) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, nint) reference
  • bool TryParse(string?, IFormatProvider?, nint) reference
  • bool TryParse(string?, nint) reference
  • bool TryParse(string?, NumberStyles, IFormatProvider?, nint) reference

IPAddress

  • bool IsValid(ReadOnlySpan<char>) reference
    • Note: Copies the span to a string first, so this allocates where the BCL works straight from the span.
  • bool IsValidUtf8(ReadOnlySpan<byte>) reference
    • Note: Decodes the bytes to a string first, so this allocates where the BCL works straight from the UTF-8.
  • IPAddress Parse(ReadOnlySpan<char>) reference
    • Note: Copies the span to a string first, so this allocates where the BCL works straight from the span.
  • bool TryParse(ReadOnlySpan<byte>, IPAddress?) reference
    • Note: Decodes the bytes to a string first, so this allocates where the BCL works straight from the UTF-8.
    • Note: The matching Parse(ReadOnlySpan) is not polyfilled, since it would collide with Guid.Parse(ReadOnlySpan); two static extension members with the same signature cannot coexist on one class.
  • bool TryParse(ReadOnlySpan<char>, IPAddress?) reference
    • Note: Copies the span to a string first, so this allocates where the BCL works straight from the span.

IReadOnlyDictionary<TKey, TValue>

  • TValue GetValueOrDefault<TKey, TValue>(TKey, TValue) where TKey : notnull reference
  • TValue? GetValueOrDefault<TKey, TValue>(TKey) reference

ISet

ISOWeek

  • int GetWeekOfYear(DateOnly) reference
    • Note: Only available on net6.0 and later, since DateOnly does not exist below that.
  • int GetYear(DateOnly) reference
    • Note: Only available on net6.0 and later, since DateOnly does not exist below that.
  • DateOnly ToDateOnly(int, int, DayOfWeek) reference
    • Note: Only available on net6.0 and later, since DateOnly does not exist below that.

KeyValuePair<TKey, TValue>

  • void Deconstruct<TKey, TValue>(TKey, TValue) reference

List

  • void AddRange<T>(ReadOnlySpan<T>) reference
  • void CopyTo<T>(Span<T>) reference
  • void EnsureCapacity<T>(int) reference
    • Note: No-op on older targets; the BCL grows the backing storage.
    • Note: Returns void on older targets; the BCL returns int (the new capacity).
  • void InsertRange<T>(int, ReadOnlySpan<T>) reference
  • void TrimExcess<T>()
    • Note: No-op on older targets; the BCL shrinks the backing storage.

Math

MD5

  • byte[] HashData(byte[]) reference
  • int HashData(ReadOnlySpan<byte>, Span<byte>) reference
  • byte[] HashData(ReadOnlySpan<byte>) reference
  • int HashData(Stream, Span<byte>) reference
  • byte[] HashData(Stream) reference
  • ValueTask<byte[]> HashDataAsync(Stream, CancellationToken) reference
  • ValueTask<int> HashDataAsync(Stream, Memory<byte>, CancellationToken) reference
  • bool TryHashData(ReadOnlySpan<byte>, Span<byte>, int) reference

MemberInfo

  • NullabilityState GetNullability()
  • NullabilityInfo GetNullabilityInfo()
  • bool HasSameMetadataDefinitionAs(MemberInfo) reference
  • bool IsNullable()

MethodInfo

  • T CreateDelegate<T>(object?) where T : Delegate reference
  • T CreateDelegate<T>() where T : Delegate reference

ObjectDisposedException

Requires <PolyArgumentExceptions>true</PolyArgumentExceptions> in the consuming project.

OperatingSystem

OrderedDictionary<TKey, TValue>

  • bool TryAdd<TKey, TValue>(TKey, TValue, int) where TKey : notnull reference
  • bool TryGetValue<TKey, TValue>(TKey, TValue, int) where TKey : notnull reference

Parallel

  • Task ForEachAsync<T>(IAsyncEnumerable<T>, CancellationToken, Func<T, CancellationToken, ValueTask>) reference
  • Task ForEachAsync<T>(IAsyncEnumerable<T>, Func<T, CancellationToken, ValueTask>) reference
  • Task ForEachAsync<T>(IAsyncEnumerable<T>, ParallelOptions, Func<T, CancellationToken, ValueTask>) reference
  • Task ForEachAsync<T>(IEnumerable<T>, CancellationToken, Func<T, CancellationToken, ValueTask>) reference
  • Task ForEachAsync<T>(IEnumerable<T>, Func<T, CancellationToken, ValueTask>) reference
  • Task ForEachAsync<T>(IEnumerable<T>, ParallelOptions, Func<T, CancellationToken, ValueTask>) reference

ParameterInfo

  • NullabilityState GetNullability()
  • NullabilityInfo GetNullabilityInfo()
  • bool IsNullable()

Path

  • string Combine(ReadOnlySpan<string>) reference
  • bool EndsInDirectorySeparator(ReadOnlySpan<char>) reference
  • bool EndsInDirectorySeparator(string) reference
  • bool Exists(string?) reference
  • ReadOnlySpan<char> GetDirectoryName(ReadOnlySpan<char>) reference
  • ReadOnlySpan<char> GetExtension(ReadOnlySpan<char>) reference
  • ReadOnlySpan<char> GetFileName(ReadOnlySpan<char>) reference
  • ReadOnlySpan<char> GetFileNameWithoutExtension(ReadOnlySpan<char>) reference
  • string GetRelativePath(string, string) reference
  • bool HasExtension(ReadOnlySpan<char>) reference
  • bool IsPathRooted(ReadOnlySpan<char>) reference
  • string Join(string?[]) reference
  • ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char>) reference
  • string TrimEndingDirectorySeparator(string) reference

PriorityQueue<TElement, TPriority>

  • bool Remove<TElement, TPriority>(TElement, TElement, TPriority, IEqualityComparer<TElement>?) reference

Process

  • void Kill(bool) reference
    • Note: On Unix the descendants are found by running ps before anything is killed, so a child started in between is missed. When ps is not available only the process itself is killed.
  • (byte[] StandardOutput, byte[] StandardError) ReadAllBytes(TimeSpan?) reference
  • Task<(byte[] StandardOutput, byte[] StandardError)> ReadAllBytesAsync(CancellationToken) reference
  • IEnumerable<ProcessOutputLine> ReadAllLines(TimeSpan?) reference
    • Note: The timeout is measured from the point enumeration starts, since the returned sequence is lazy.
  • IAsyncEnumerable<ProcessOutputLine> ReadAllLinesAsync(CancellationToken) reference
  • (string StandardOutput, string StandardError) ReadAllText(TimeSpan?) reference
  • Task<(string StandardOutput, string StandardError)> ReadAllTextAsync(CancellationToken) reference
  • bool Signal(PosixSignal) reference
    • Note: On Windows, as on net11, only SIGKILL is supported and is mapped to Process.Kill. All other signals throw PlatformNotSupportedException.
    • Note: PosixSignal.SIGKILL was added in net11, so it cannot be named on earlier target frameworks. Its numeric value, (PosixSignal)(-11), is accepted.
  • bool TryWaitForExitStatus(TimeSpan, ProcessExitStatus?) reference
    • Note: On Unix the terminating signal is derived from the exit code, which is 128 plus the signal number, instead of from the raw wait status. A process that exits normally with, for example, code 143 is therefore reported as terminated by SIGTERM.
  • Task WaitForExitAsync(CancellationToken) reference
  • ProcessExitStatus WaitForExitStatus() reference
    • Note: On Unix the terminating signal is derived from the exit code, which is 128 plus the signal number, instead of from the raw wait status. A process that exits normally with, for example, code 143 is therefore reported as terminated by SIGTERM.
  • Task<ProcessExitStatus> WaitForExitStatusAsync(CancellationToken) reference
    • Note: On Unix the terminating signal is derived from the exit code, which is 128 plus the signal number, instead of from the raw wait status. A process that exits normally with, for example, code 143 is therefore reported as terminated by SIGTERM.
  • ProcessExitStatus Run(ProcessStartInfo, TimeSpan?) reference
  • ProcessExitStatus Run(string, IEnumerable<string>?, bool, TimeSpan?) reference
    • Note: When silent is true, standard output and error are suppressed by redirecting and discarding them (rather than binding to the null device as on net11); standard input remains connected.
  • ProcessTextOutput RunAndCaptureText(ProcessStartInfo, TimeSpan?) reference
  • ProcessTextOutput RunAndCaptureText(string, IEnumerable<string>?, TimeSpan?) reference
  • Task<ProcessTextOutput> RunAndCaptureTextAsync(ProcessStartInfo, CancellationToken) reference
  • Task<ProcessTextOutput> RunAndCaptureTextAsync(string, IEnumerable<string>?, CancellationToken) reference
  • Task<ProcessExitStatus> RunAsync(ProcessStartInfo, CancellationToken) reference
  • Task<ProcessExitStatus> RunAsync(string, IEnumerable<string>?, bool, CancellationToken) reference
    • Note: When silent is true, standard output and error are suppressed by redirecting and discarding them (rather than binding to the null device as on net11); standard input remains connected.
  • int StartAndForget(ProcessStartInfo) reference
  • int StartAndForget(string, IEnumerable<string>?) reference
  • bool TryGetProcessById(int, Process?) reference

ProcessStartInfo

PropertyInfo

  • NullabilityState GetNullability()
  • NullabilityInfo GetNullabilityInfo()
  • bool IsNullable()

Queue

  • void EnsureCapacity<T>(int) reference
    • Note: No-op on older targets; the BCL grows the backing storage.
  • void TrimExcess<T>(int) reference
    • Note: No-op on older targets; the BCL shrinks the backing storage.
  • bool TryDequeue<T>(T) reference
  • bool TryPeek<T>(T) reference

Random

RandomNumberGenerator

ReadOnlySpan

  • bool ContainsAnyWhiteSpace() reference
  • bool EndsWith(string, StringComparison) reference
  • bool EndsWith(string) reference
  • SpanLineEnumerator EnumerateLines() reference
  • int GetNormalizedLength(NormalizationForm) reference
  • int IndexOfAnyExceptWhiteSpace() reference
  • int IndexOfAnyWhiteSpace() reference
  • bool IsNormalized(NormalizationForm) reference
  • int LastIndexOfAnyExceptWhiteSpace() reference
  • int LastIndexOfAnyWhiteSpace() reference
  • bool SequenceEqual(string) reference
  • int Split(Span<Range>, char, StringSplitOptions) reference
  • int Split(Span<Range>, ReadOnlySpan<char>, StringSplitOptions) reference
  • int SplitAny(Span<Range>, ReadOnlySpan<char>, StringSplitOptions) reference
  • int SplitAny(Span<Range>, ReadOnlySpan<string>, StringSplitOptions) reference
  • bool StartsWith(string, StringComparison) reference
  • bool StartsWith(string) reference
  • int ToLowerOrdinal(Span<char>) reference
    • Note: Derived from invariant casing, so the mapping follows the Unicode version of the running framework rather than the one net11 is built against.
  • int ToUpperOrdinal(Span<char>) reference
    • Note: Derived from invariant casing, so the mapping follows the Unicode version of the running framework rather than the one net11 is built against.
  • bool TryNormalize(Span<char>, int, NormalizationForm) reference

ReadOnlySpan

  • int CommonPrefixLength<T>(ReadOnlySpan<T>, IEqualityComparer<T>?) reference
  • int CommonPrefixLength<T>(ReadOnlySpan<T>) reference
  • bool Contains<T>(T, IEqualityComparer<T>?) reference
  • bool Contains<T>(T) where T : IEquatable<T>? reference
  • bool ContainsAnyExcept<T>(ReadOnlySpan<T>) where T : IEquatable<T>? reference
  • bool ContainsAnyExcept<T>(T, T, T) where T : IEquatable<T>? reference
  • bool ContainsAnyExcept<T>(T, T) where T : IEquatable<T>? reference
  • bool ContainsAnyExcept<T>(T) where T : IEquatable<T>? reference
  • bool ContainsAnyExceptInRange<T>(T, T) where T : IComparable<T> reference
  • bool ContainsAnyInRange<T>(T, T) where T : IComparable<T> reference
  • int CountAny<T>(ReadOnlySpan<T>, IEqualityComparer<T>?) reference
  • int CountAny<T>(ReadOnlySpan<T>) where T : IEquatable<T>? reference
  • int CountAny<T>(SearchValues<T>) where T : IEquatable<T>? reference
  • bool EndsWith<T>(T) where T : IEquatable<T>? reference
  • int IndexOf<T>(T, IEqualityComparer<T>?) reference
  • int IndexOfAny<T>(ReadOnlySpan<T>, IEqualityComparer<T>?) reference
  • int IndexOfAnyExcept<T>(ReadOnlySpan<T>) where T : IEquatable<T>? reference
  • int IndexOfAnyExcept<T>(T, T, T) where T : IEquatable<T>? reference
  • int IndexOfAnyExcept<T>(T, T) where T : IEquatable<T>? reference
  • int IndexOfAnyExcept<T>(T) where T : IEquatable<T>? reference
  • int LastIndexOfAnyExcept<T>(ReadOnlySpan<T>) where T : IEquatable<T>? reference
  • int LastIndexOfAnyExcept<T>(T, T, T) where T : IEquatable<T>? reference
  • int LastIndexOfAnyExcept<T>(T, T) where T : IEquatable<T>? reference
  • int LastIndexOfAnyExcept<T>(T) where T : IEquatable<T>? reference
  • T? Max<T>(IComparer<T>?) reference
  • T? Max<T>() reference
  • T? Min<T>(IComparer<T>?) reference
  • T? Min<T>() reference
  • SpanSplitEnumerator<T> Split<T>(ReadOnlySpan<T>) where T : IEquatable<T> reference
  • SpanSplitEnumerator<T> Split<T>(T) where T : IEquatable<T> reference
  • SpanSplitEnumerator<T> SplitAny<T>(ReadOnlySpan<T>) where T : IEquatable<T> reference
  • SpanSplitEnumerator<T> SplitAny<T>(SearchValues<T>) where T : IEquatable<T> reference
  • bool StartsWith<T>(T) where T : IEquatable<T>? reference

Regex

  • int Count(ReadOnlySpan<char>, int) reference
  • int Count(ReadOnlySpan<char>) reference
  • int Count(string) reference
  • ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char>, int) reference
  • ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char>) reference
  • ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char>, int, int) reference
  • ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char>, int) reference
  • ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char>) reference
  • bool IsMatch(ReadOnlySpan<char>, int) reference
  • bool IsMatch(ReadOnlySpan<char>) reference
  • int Count(ReadOnlySpan<char>, string, RegexOptions, TimeSpan) reference
  • int Count(ReadOnlySpan<char>, string, RegexOptions) reference
  • int Count(ReadOnlySpan<char>, string) reference
  • int Count(string, string, RegexOptions, TimeSpan) reference
  • int Count(string, string, RegexOptions) reference
  • int Count(string, string) reference
  • ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char>, string, RegexOptions, TimeSpan) reference
  • ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char>, string, RegexOptions) reference
  • ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char>, string) reference
  • ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char>, string, RegexOptions, TimeSpan) reference
  • ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char>, string, RegexOptions) reference
  • ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char>, string) reference
  • bool IsMatch(ReadOnlySpan<char>, string, RegexOptions, TimeSpan) reference
  • bool IsMatch(ReadOnlySpan<char>, string, RegexOptions) reference
  • bool IsMatch(ReadOnlySpan<char>, string) reference

Rune

  • bool Equals(Rune, StringComparison) reference
  • Rune ToLowerOrdinal(Rune) reference
    • Note: Derived from invariant casing, so the mapping follows the Unicode version of the running framework rather than the one net11 is built against.
  • Rune ToUpperOrdinal(Rune) reference
    • Note: Derived from invariant casing, so the mapping follows the Unicode version of the running framework rather than the one net11 is built against.

RuntimeFeature

SByte

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • sbyte Log10(sbyte) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, sbyte) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, sbyte) reference
  • bool TryParse(ReadOnlySpan<byte>, sbyte) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, sbyte) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, sbyte) reference
  • bool TryParse(ReadOnlySpan<char>, sbyte) reference
  • bool TryParse(string?, IFormatProvider?, sbyte) reference

SHA1

  • byte[] HashData(byte[]) reference
  • int HashData(ReadOnlySpan<byte>, Span<byte>) reference
  • byte[] HashData(ReadOnlySpan<byte>) reference
  • int HashData(Stream, Span<byte>) reference
  • byte[] HashData(Stream) reference
  • ValueTask<byte[]> HashDataAsync(Stream, CancellationToken) reference
  • ValueTask<int> HashDataAsync(Stream, Memory<byte>, CancellationToken) reference
  • bool TryHashData(ReadOnlySpan<byte>, Span<byte>, int) reference

SHA256

  • byte[] HashData(byte[]) reference
  • int HashData(ReadOnlySpan<byte>, Span<byte>) reference
  • byte[] HashData(ReadOnlySpan<byte>) reference
  • int HashData(Stream, Span<byte>) reference
  • byte[] HashData(Stream) reference
  • ValueTask<byte[]> HashDataAsync(Stream, CancellationToken) reference
  • ValueTask<int> HashDataAsync(Stream, Memory<byte>, CancellationToken) reference
  • bool TryHashData(ReadOnlySpan<byte>, Span<byte>, int) reference

SHA384

  • byte[] HashData(byte[]) reference
  • int HashData(ReadOnlySpan<byte>, Span<byte>) reference
  • byte[] HashData(ReadOnlySpan<byte>) reference
  • int HashData(Stream, Span<byte>) reference
  • byte[] HashData(Stream) reference
  • ValueTask<byte[]> HashDataAsync(Stream, CancellationToken) reference
  • ValueTask<int> HashDataAsync(Stream, Memory<byte>, CancellationToken) reference
  • bool TryHashData(ReadOnlySpan<byte>, Span<byte>, int) reference

SHA512

  • byte[] HashData(byte[]) reference
  • int HashData(ReadOnlySpan<byte>, Span<byte>) reference
  • byte[] HashData(ReadOnlySpan<byte>) reference
  • int HashData(Stream, Span<byte>) reference
  • byte[] HashData(Stream) reference
  • ValueTask<byte[]> HashDataAsync(Stream, CancellationToken) reference
  • ValueTask<int> HashDataAsync(Stream, Memory<byte>, CancellationToken) reference
  • bool TryHashData(ReadOnlySpan<byte>, Span<byte>, int) reference

Single

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryParse(ReadOnlySpan<byte>, float) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, float) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, float) reference
  • bool TryParse(ReadOnlySpan<char>, float) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, float) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, float) reference
  • bool TryParse(string?, IFormatProvider?, float) reference

Socket

  • ValueTask ConnectAsync(EndPoint, CancellationToken) reference
  • ValueTask DisconnectAsync(bool, CancellationToken) reference
  • ValueTask<SocketReceiveFromResult> ReceiveFromAsync(Memory<byte>, SocketFlags, EndPoint, CancellationToken) reference
  • ValueTask<int> SendToAsync(ReadOnlyMemory<byte>, SocketFlags, EndPoint, CancellationToken) reference

SortedList<TKey, TValue>

  • TKey GetKeyAtIndex<TKey, TValue>(int) reference
  • TValue GetValueAtIndex<TKey, TValue>(int) reference

Span

Span

  • int CommonPrefixLength<T>(ReadOnlySpan<T>, IEqualityComparer<T>?) reference
  • int CommonPrefixLength<T>(ReadOnlySpan<T>) reference
  • bool Contains<T>(T) where T : IEquatable<T>? reference
  • bool ContainsAnyExcept<T>(ReadOnlySpan<T>) where T : IEquatable<T>? reference
  • bool ContainsAnyExcept<T>(T, T, T) where T : IEquatable<T>? reference
  • bool ContainsAnyExcept<T>(T, T) where T : IEquatable<T>? reference
  • bool ContainsAnyExcept<T>(T) where T : IEquatable<T>? reference
  • bool ContainsAnyExceptInRange<T>(T, T) where T : IComparable<T> reference
  • bool ContainsAnyInRange<T>(T, T) where T : IComparable<T> reference
  • int IndexOfAnyExcept<T>(ReadOnlySpan<T>) where T : IEquatable<T>? reference
  • int IndexOfAnyExcept<T>(T, T, T) where T : IEquatable<T>? reference
  • int IndexOfAnyExcept<T>(T, T) where T : IEquatable<T>? reference
  • int IndexOfAnyExcept<T>(T) where T : IEquatable<T>? reference
  • int LastIndexOfAnyExcept<T>(ReadOnlySpan<T>) where T : IEquatable<T>? reference
  • int LastIndexOfAnyExcept<T>(T, T, T) where T : IEquatable<T>? reference
  • int LastIndexOfAnyExcept<T>(T, T) where T : IEquatable<T>? reference
  • int LastIndexOfAnyExcept<T>(T) where T : IEquatable<T>? reference
  • void Sort<T>(Comparison<T>)
  • void Sort<T>() reference

Span

  • void Sort<TKey, TValue, TComparer>(Span<TValue>, TComparer) where TComparer : IComparer<TKey>? reference
  • void Sort<TKey, TValue>(Span<TValue>, Comparison<TKey>) reference
  • void Sort<TKey, TValue>(Span<TValue>) reference

Stack

  • void EnsureCapacity<T>(int) reference
    • Note: No-op on older targets; the BCL grows the backing storage.
  • void TrimExcess<T>(int) reference
    • Note: No-op on older targets; the BCL shrinks the backing storage.
  • bool TryPeek<T>(T) reference
  • bool TryPop<T>(T) reference

Stopwatch

Stream

  • Task CopyToAsync(Stream, CancellationToken) reference
  • ValueTask DisposeAsync() reference
  • int Read(Span<byte>) reference
  • ValueTask<int> ReadAsync(Memory<byte>, CancellationToken) reference
  • int ReadAtLeast(Span<byte>, int, bool) reference
  • ValueTask<int> ReadAtLeastAsync(Memory<byte>, int, bool, CancellationToken) reference
  • void ReadExactly(byte[], int, int) reference
  • void ReadExactly(Span<byte>) reference
  • ValueTask ReadExactlyAsync(byte[], int, int, CancellationToken) reference
  • ValueTask ReadExactlyAsync(Memory<byte>, CancellationToken) reference
  • void Write(ReadOnlySpan<byte>) reference
  • ValueTask WriteAsync(ReadOnlyMemory<byte>, CancellationToken) reference

String

  • bool Contains(char, StringComparison) reference
  • bool Contains(char) reference
  • bool Contains(string, StringComparison) reference
  • void CopyTo(Span<char>) reference
  • bool EndsWith(char, StringComparison) reference
  • bool EndsWith(char) reference
  • int GetHashCode(StringComparison) reference
  • int IndexOf(char, int, int, StringComparison) reference
  • int IndexOf(char, int, StringComparison) reference
  • int IndexOf(char, StringComparison) reference
  • int LastIndexOf(char, int, int, StringComparison) reference
  • int LastIndexOf(char, int, StringComparison) reference
  • int LastIndexOf(char, StringComparison) reference
  • string ReplaceLineEndings(string) reference
  • string ReplaceLineEndings() reference
  • string[] Split(char, int, StringSplitOptions) reference
  • string[] Split(char, StringSplitOptions) reference
  • string[] Split(string, int, StringSplitOptions) reference
  • string[] Split(string, StringSplitOptions) reference
  • bool StartsWith(char, StringComparison) reference
  • bool StartsWith(char) reference
  • string ToLowerOrdinal() reference
    • Note: Derived from invariant casing, so the mapping follows the Unicode version of the running framework rather than the one net11 is built against.
  • string ToUpperOrdinal() reference
    • Note: Derived from invariant casing, so the mapping follows the Unicode version of the running framework rather than the one net11 is built against.
  • bool TryCopyTo(Span<char>) reference
  • string Concat(ReadOnlySpan<object?>) reference
  • string Concat(ReadOnlySpan<string?>) reference
  • string Create<TState>(int, TState, System.Buffers.SpanAction<char, TState>) reference
  • int GetHashCode(ReadOnlySpan<char>, StringComparison) reference
  • int GetHashCode(ReadOnlySpan<char>) reference
  • string Join(char, object?[]) reference
  • string Join(char, ReadOnlySpan<object?>) reference
  • string Join(char, ReadOnlySpan<string?>) reference
  • string Join(char, string?[], int, int) reference
  • string Join(char, string?[]) reference
  • string Join(string?, ReadOnlySpan<object?>) reference
  • string Join(string?, ReadOnlySpan<string?>) reference
  • string Join<T>(char, IEnumerable<T>) reference

StringBuilder

  • StringBuilder Append(StringBuilder, AppendInterpolatedStringHandler) reference
  • StringBuilder Append(StringBuilder, IFormatProvider?, AppendInterpolatedStringHandler) reference
  • StringBuilder Append(StringBuilder, IFormatProvider?, StringBuilder.AppendInterpolatedStringHandler) reference
  • StringBuilder Append(ReadOnlySpan<char>) reference
  • StringBuilder Append(StringBuilder?, int, int) reference
  • StringBuilder Append(StringBuilder, StringBuilder.AppendInterpolatedStringHandler) reference
  • StringBuilder AppendFormat(IFormatProvider?, string, ReadOnlySpan<object?>) reference
    • Note: Copies the span to an array and uses the array overload, so this allocates where the BCL formats straight from the span.
    • Note: Only reached when the argument is already a ReadOnlySpan. A loose argument list binds to the BCL array overload, exactly as it does without Polyfill.
  • StringBuilder AppendFormat(string, ReadOnlySpan<object?>) reference
    • Note: Copies the span to an array and uses the array overload, so this allocates where the BCL formats straight from the span.
    • Note: Only reached when the argument is already a ReadOnlySpan. A loose argument list binds to the BCL array overload, exactly as it does without Polyfill.
  • StringBuilder AppendJoin(char, ReadOnlySpan<object?>) reference
    • Note: Copies the span to an array and uses the array overload, so this allocates where the BCL joins straight from the span.
    • Note: Only reached when the argument is already a ReadOnlySpan. A loose argument list binds to the array overload, exactly as it does without Polyfill.
  • StringBuilder AppendJoin(char, ReadOnlySpan<string?>) reference
    • Note: Copies the span to an array and uses the array overload, so this allocates where the BCL joins straight from the span.
    • Note: Only reached when the argument is already a ReadOnlySpan. A loose argument list binds to the array overload, exactly as it does without Polyfill.
  • StringBuilder AppendJoin(string?, ReadOnlySpan<object?>) reference
    • Note: Copies the span to an array and uses the array overload, so this allocates where the BCL joins straight from the span.
    • Note: Only reached when the argument is already a ReadOnlySpan. A loose argument list binds to the array overload, exactly as it does without Polyfill.
  • StringBuilder AppendJoin(string?, ReadOnlySpan<string?>) reference
    • Note: Copies the span to an array and uses the array overload, so this allocates where the BCL joins straight from the span.
    • Note: Only reached when the argument is already a ReadOnlySpan. A loose argument list binds to the array overload, exactly as it does without Polyfill.
  • StringBuilder AppendJoin(char, object?[]) reference
  • StringBuilder AppendJoin(char, string?[]) reference
  • StringBuilder AppendJoin(string?, object?[]) reference
  • StringBuilder AppendJoin(string?, string?[]) reference
  • StringBuilder AppendJoin<T>(char, IEnumerable<T>) reference
  • StringBuilder AppendJoin<T>(string?, IEnumerable<T>) reference
  • StringBuilder AppendLine(StringBuilder, AppendInterpolatedStringHandler) reference
  • StringBuilder AppendLine(StringBuilder, IFormatProvider?, AppendInterpolatedStringHandler) reference
  • StringBuilder AppendLine(StringBuilder, IFormatProvider?, StringBuilder.AppendInterpolatedStringHandler) reference
  • StringBuilder AppendLine(StringBuilder, StringBuilder.AppendInterpolatedStringHandler) reference
  • void CopyTo(int, Span<char>, int) reference
  • StringBuilderRuneEnumerator EnumerateRunes() reference
    • Note: Enumerates over a snapshot of the content taken when enumeration starts, so changes made to the StringBuilder while enumerating are not observed.
  • bool Equals(ReadOnlySpan<char>) reference
  • ChunkEnumerator GetChunks() reference
  • Rune GetRuneAt(int) reference
  • StringBuilder Insert(int, ReadOnlySpan<char>) reference
  • StringBuilder Replace(ReadOnlySpan<char>, ReadOnlySpan<char>, int, int) reference
  • StringBuilder Replace(ReadOnlySpan<char>, ReadOnlySpan<char>) reference
  • StringBuilder Replace(Rune, Rune, int, int) reference
  • StringBuilder Replace(Rune, Rune) reference
  • bool TryGetRuneAt(int, Rune) reference
  • StringBuilder MoveChunks(StringBuilder) reference

Task

  • ConfiguredTaskAwaitable ConfigureAwait(ConfigureAwaitOptions) reference
  • Task WaitAsync(CancellationToken) reference
  • Task WaitAsync(TimeSpan, CancellationToken) reference
  • Task WaitAsync(TimeSpan) reference
  • Task WhenAll(ReadOnlySpan<Task>) reference
  • Task<TResult[]> WhenAll<TResult>(ReadOnlySpan<Task<TResult>>) reference
  • Task<Task> WhenAny(ReadOnlySpan<Task>) reference
  • Task<Task<TResult>> WhenAny<TResult>(ReadOnlySpan<Task<TResult>>) reference

Task

  • ConfiguredTaskAwaitable<TResult> ConfigureAwait<TResult>(ConfigureAwaitOptions) reference
  • Task<TResult> WaitAsync<TResult>(CancellationToken) reference
  • Task<TResult> WaitAsync<TResult>(TimeSpan, CancellationToken) reference
  • Task<TResult> WaitAsync<TResult>(TimeSpan) reference

TaskCompletionSource

  • void SetFromTask(Task) reference
    • Note: When the supplied task is canceled, the canceling token is recovered by observing that task, which costs a throw and catch that the BCL avoids.
  • bool TrySetFromTask(Task) reference
    • Note: When the supplied task is canceled, the canceling token is recovered by observing that task, which costs a throw and catch that the BCL avoids.

TaskCompletionSource

  • void SetCanceled<T>(CancellationToken) reference
  • void SetFromTask<T>(Task<T>) reference
    • Note: When the supplied task is canceled, the canceling token is recovered by observing that task, which costs a throw and catch that the BCL avoids.
  • bool TrySetFromTask<T>(Task<T>) reference
    • Note: When the supplied task is canceled, the canceling token is recovered by observing that task, which costs a throw and catch that the BCL avoids.

TaskWhenEach

  • IAsyncEnumerable<Task> WhenEach(IEnumerable<Task>, CancellationToken) reference
  • IAsyncEnumerable<Task<TResult>> WhenEach<TResult>(IEnumerable<Task<TResult>>, CancellationToken) reference

TcpClient

  • ValueTask ConnectAsync(IPAddress, int, CancellationToken) reference
  • ValueTask ConnectAsync(IPAddress[], int, CancellationToken) reference
  • ValueTask ConnectAsync(IPEndPoint, CancellationToken) reference
  • ValueTask ConnectAsync(string, int, CancellationToken) reference

TextReader

  • ValueTask<int> ReadAsync(Memory<char>, CancellationToken) reference
  • Task<string> ReadLineAsync(CancellationToken) reference
  • Task<string> ReadToEndAsync(CancellationToken) reference

TextWriter

  • Task FlushAsync(CancellationToken) reference
  • void Write(ReadOnlySpan<char>) reference
  • void Write(StringBuilder?) reference
  • Task WriteAsync(ReadOnlyMemory<char>, CancellationToken) reference
  • Task WriteAsync(string?, CancellationToken) reference
  • Task WriteAsync(StringBuilder?, CancellationToken) reference
  • void WriteLine(ReadOnlySpan<char>) reference
  • Task WriteLineAsync(CancellationToken) reference
  • Task WriteLineAsync(ReadOnlyMemory<char>, CancellationToken) reference
  • Task WriteLineAsync(string?, CancellationToken) reference
  • TextWriter CreateBroadcasting(TextWriter[]) reference

TimeOnly

  • void Deconstruct(int, int, int, int, int) reference
  • void Deconstruct(int, int, int, int) reference
  • void Deconstruct(int, int, int) reference
  • void Deconstruct(int, int) reference
  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference

TimeSpan

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • TimeSpan FromDays(int, int, long, long, long, long) reference
  • TimeSpan FromHours(int, long, long, long, long) reference
  • TimeSpan FromMicroseconds(long) reference
  • TimeSpan FromMilliseconds(long, long) reference
  • TimeSpan FromMinutes(long, long, long, long) reference
  • TimeSpan FromSeconds(long, long, long) reference
  • int HoursPerDay reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • int Microseconds reference
  • long MicrosecondsPerDay reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long MicrosecondsPerHour reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long MicrosecondsPerMillisecond reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long MicrosecondsPerMinute reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long MicrosecondsPerSecond reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long MillisecondsPerDay reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long MillisecondsPerHour reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long MillisecondsPerMinute reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long MillisecondsPerSecond reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long MinutesPerDay reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long MinutesPerHour reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • int Nanoseconds reference
  • long SecondsPerDay reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long SecondsPerHour reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.
  • long SecondsPerMinute reference
    • Note: A property rather than a const, since extension members cannot declare constants, so it cannot be used in a constant expression.

Type

  • MemberInfo GetMemberWithSameMetadataDefinitionAs(MemberInfo) reference
  • MethodInfo? GetMethod(string, int, BindingFlags, Binder?, Type[], ParameterModifier[]?) reference
  • MethodInfo? GetMethod(string, int, BindingFlags, Type[]) reference
  • bool IsAssignableFrom<T>()
  • bool IsAssignableTo(Type?) reference
  • bool IsAssignableTo<T>()
  • Type? GetNullableUnderlyingType() reference
  • bool IsGenericMethodParameter reference

UdpClient

  • ValueTask<UdpReceiveResult> ReceiveAsync(CancellationToken) reference
    • Note: Cancellation abandons the wait, not the underlying receive, which stays in flight. Its datagram is returned by the next ReceiveAsync(CancellationToken) call, so after a cancellation do not mix in the other Receive overloads.
  • int Send(ReadOnlySpan<byte>, IPEndPoint?) reference
  • int Send(ReadOnlySpan<byte>, string?, int) reference
  • int Send(ReadOnlySpan<byte>) reference
  • ValueTask<int> SendAsync(ReadOnlyMemory<byte>, CancellationToken) reference
  • ValueTask<int> SendAsync(ReadOnlyMemory<byte>, IPEndPoint?, CancellationToken) reference
  • ValueTask<int> SendAsync(ReadOnlyMemory<byte>, string?, int, CancellationToken) reference

UInt128

UInt16

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • ushort Log10(ushort) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, ushort) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, ushort) reference
  • bool TryParse(ReadOnlySpan<byte>, ushort) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, ushort) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, ushort) reference
  • bool TryParse(ReadOnlySpan<char>, ushort) reference
  • bool TryParse(string?, IFormatProvider?, ushort) reference

UInt32

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • ulong BigMul(uint, uint) reference
    • Note: The identical Math.BigMul overload is not polyfilled, since C# emits both static extension members onto the same class and they would collide.
  • uint Log10(uint) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, uint) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, uint) reference
  • bool TryParse(ReadOnlySpan<byte>, uint) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, uint) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, uint) reference
  • bool TryParse(ReadOnlySpan<char>, uint) reference
  • bool TryParse(string?, IFormatProvider?, uint) reference

UInt64

  • bool TryFormat(Span<byte>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • bool TryFormat(Span<char>, int, ReadOnlySpan<char>, IFormatProvider?) reference
  • UInt128 BigMul(ulong, ulong) reference
    • Note: The identical Math.BigMul overload is not polyfilled, since C# emits both static extension members onto the same class and they would collide.
    • Note: Only available on net7.0 and later, since UInt128 does not exist below that.
  • ulong Log10(ulong) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, ulong) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, ulong) reference
  • bool TryParse(ReadOnlySpan<byte>, ulong) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, ulong) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, ulong) reference
  • bool TryParse(ReadOnlySpan<char>, ulong) reference
  • bool TryParse(string?, IFormatProvider?, ulong) reference

UIntPtr

  • nuint BigMul(nuint, nuint, nuint) reference
  • nuint Log10(nuint) reference
  • bool TryParse(ReadOnlySpan<byte>, IFormatProvider?, nuint) reference
  • bool TryParse(ReadOnlySpan<byte>, nuint) reference
  • bool TryParse(ReadOnlySpan<byte>, NumberStyles, IFormatProvider?, nuint) reference
  • bool TryParse(ReadOnlySpan<char>, IFormatProvider?, nuint) reference
  • bool TryParse(ReadOnlySpan<char>, nuint) reference
  • bool TryParse(ReadOnlySpan<char>, NumberStyles, IFormatProvider?, nuint) reference
  • bool TryParse(string?, IFormatProvider?, nuint) reference
  • bool TryParse(string?, nuint) reference
  • bool TryParse(string?, NumberStyles, IFormatProvider?, nuint) reference

Uri

  • string EscapeDataString(ReadOnlySpan<char>) reference
    • Note: Copies the span to a string first, so this allocates where the BCL escapes straight from the span.
  • bool TryEscapeDataString(ReadOnlySpan<char>, Span<char>, int) reference
    • Note: Escapes through an intermediate string, so this allocates where the BCL writes straight to the destination.
  • bool TryUnescapeDataString(ReadOnlySpan<char>, Span<char>, int) reference
    • Note: Unescapes through an intermediate string, so this allocates where the BCL writes straight to the destination.
  • string UnescapeDataString(ReadOnlySpan<char>) reference
    • Note: Copies the span to a string first, so this allocates where the BCL unescapes straight from the span.
  • string UriSchemeData reference

Utf8

  • int IndexOfInvalidSubsequence(ReadOnlySpan<byte>) reference

ValueTask

Volatile

  • void ReadBarrier() reference
    • Note: Implemented as a full fence, since no one way barrier exists below net10. Correct but stronger than required, and unlike the BCL it costs a processor instruction on x86 and x64.
  • void WriteBarrier() reference
    • Note: Implemented as a full fence, since no one way barrier exists below net10. Correct but stronger than required, and unlike the BCL it costs a processor instruction on x86 and x64.

XDocument

  • Task SaveAsync(Stream, SaveOptions, CancellationToken) reference
  • Task SaveAsync(TextWriter, SaveOptions, CancellationToken) reference
  • Task SaveAsync(XmlWriter, CancellationToken) reference
  • Task<XDocument> LoadAsync(Stream, LoadOptions, CancellationToken) reference
  • Task<XDocument> LoadAsync(TextReader, LoadOptions, CancellationToken) reference
  • Task<XDocument> LoadAsync(XmlReader, LoadOptions, CancellationToken) reference

XElement

  • Task SaveAsync(Stream, SaveOptions, CancellationToken) reference
  • Task SaveAsync(TextWriter, SaveOptions, CancellationToken) reference
  • Task SaveAsync(XmlWriter, CancellationToken) reference
  • Task<XElement> LoadAsync(Stream, LoadOptions, CancellationToken) reference
  • Task<XElement> LoadAsync(TextReader, LoadOptions, CancellationToken) reference
  • Task<XElement> LoadAsync(XmlReader, LoadOptions, CancellationToken) reference

XNode

  • Task WriteToAsync(XmlWriter, CancellationToken) reference
  • Task<XNode> ReadFromAsync(XmlReader, CancellationToken) reference

ZipArchive

  • Task<ZipArchiveEntry> CreateEntryFromFileAsync(string, string, CancellationToken) reference
  • Task<ZipArchiveEntry> CreateEntryFromFileAsync(string, string, CompressionLevel, CancellationToken) reference
  • void ExtractToDirectory(string, bool) reference
  • Task ExtractToDirectoryAsync(string, bool, CancellationToken) reference
  • Task ExtractToDirectoryAsync(string, CancellationToken) reference

ZipArchiveEntry

  • Task ExtractToFileAsync(string, bool, CancellationToken) reference
  • Task ExtractToFileAsync(string, CancellationToken) reference
  • Stream Open(FileAccess) reference
  • Task<Stream> OpenAsync(CancellationToken) reference
  • ValueTask<Stream> OpenAsync(FileAccess, CancellationToken) reference
  • int ExternalAttributes reference

ZipFile

  • Task CreateFromDirectoryAsync(string, string, CancellationToken) reference
  • Task CreateFromDirectoryAsync(string, string, CompressionLevel, bool, CancellationToken) reference
  • Task CreateFromDirectoryAsync(string, string, CompressionLevel, bool, Encoding, CancellationToken) reference
  • Task ExtractToDirectoryAsync(string, string, bool, CancellationToken) reference
  • Task ExtractToDirectoryAsync(string, string, CancellationToken) reference
  • Task ExtractToDirectoryAsync(string, string, Encoding, bool, CancellationToken) reference
  • Task ExtractToDirectoryAsync(string, string, Encoding, CancellationToken) reference
  • Task<ZipArchive> OpenAsync(string, ZipArchiveMode, CancellationToken) reference
  • Task<ZipArchive> OpenAsync(string, ZipArchiveMode, Encoding?, CancellationToken) reference
  • Task<ZipArchive> OpenReadAsync(string, CancellationToken) reference

Ensure

Requires <PolyEnsure>true</PolyEnsure> in the consuming project.

  • void DirectoryExists(string)
  • T Equal<T>(T, T)
  • void FileExists(string)
  • void NoDuplicates<T>(IEnumerable<T>)
  • string? NotEmpty(string?)
  • Memory<T>? NotEmpty<T>(Memory<T>?)
  • Memory<T> NotEmpty<T>(Memory<T>)
  • ReadOnlyMemory<T>? NotEmpty<T>(ReadOnlyMemory<T>?)
  • ReadOnlyMemory<T> NotEmpty<T>(ReadOnlyMemory<T>)
  • ReadOnlySpan<T> NotEmpty<T>(ReadOnlySpan<T>)
  • Span<T> NotEmpty<T>(Span<T>)
  • T? NotEmpty<T>(T?) where T : IEnumerable
  • T NotEqual<T>(T, T)
  • nint NotGreaterThan(nint, nint)
  • T NotGreaterThan<T>(T, T) where T : IComparable<T>
  • nint NotGreaterThanOrEqual(nint, nint)
  • T NotGreaterThanOrEqual<T>(T, T) where T : IComparable<T>
  • nint NotLessThan(nint, nint)
  • T NotLessThan<T>(T, T) where T : IComparable<T>
  • nint NotLessThanOrEqual(nint, nint)
  • T NotLessThanOrEqual<T>(T, T) where T : IComparable<T>
  • nint NotNegative(nint)
  • T NotNegative<T>(T) where T : struct, IComparable<T>
  • nint NotNegativeOrZero(nint)
  • T NotNegativeOrZero<T>(T) where T : struct, IComparable<T>
  • string NotNull(string?)
  • T NotNull<T>(T?) where T : class
  • Memory<char> NotNullOrEmpty(Memory<char>?)
  • ReadOnlyMemory<char> NotNullOrEmpty(ReadOnlyMemory<char>?)
  • string NotNullOrEmpty(string?)
  • T NotNullOrEmpty<T>(T?) where T : IEnumerable
  • Memory<char> NotNullOrWhiteSpace(Memory<char>?)
  • ReadOnlyMemory<char> NotNullOrWhiteSpace(ReadOnlyMemory<char>?)
  • string NotNullOrWhiteSpace(string?)
  • Memory<char>? NotWhiteSpace(Memory<char>?)
  • ReadOnlyMemory<char>? NotWhiteSpace(ReadOnlyMemory<char>?)
  • ReadOnlySpan<char> NotWhiteSpace(ReadOnlySpan<char>)
  • Span<char> NotWhiteSpace(Span<char>)
  • string? NotWhiteSpace(string?)
  • nint NotZero(nint)
  • T NotZero<T>(T) where T : struct, IEquatable<T>

Lock

  • void Enter()
  • Scope EnterScope()
  • void Exit()
  • bool TryEnter()
  • bool TryEnter(int)
  • bool TryEnter(TimeSpan)

KeyValuePair

  • KeyValuePair<TKey, TValue> Create<TKey, TValue>(TKey, TValue) reference

CollectionsMarshal

  • Span<T> AsSpan<T>(List<T>?) reference
    • Note: Reads the list's private backing array via reflection on this target.
  • void SetCount<T>(List<T>, int) reference
    • Note: When growing, new elements are default(T); the BCL exposes uninitialized data.

BitOperations

CryptographicOperations

  • bool FixedTimeEquals(ReadOnlySpan<byte>, byte) reference
    • Note: Best-effort constant-time comparison; a managed loop cannot offer the same guarantees as the BCL intrinsic.
  • bool FixedTimeEquals(ReadOnlySpan<byte>, ReadOnlySpan<byte>) reference
    • Note: Best-effort constant-time comparison; a managed loop cannot offer the same guarantees as the BCL intrinsic.
  • byte[] HashData(HashAlgorithmName, byte[]) reference
  • int HashData(HashAlgorithmName, ReadOnlySpan<byte>, Span<byte>) reference
  • byte[] HashData(HashAlgorithmName, ReadOnlySpan<byte>) reference
  • int HashData(HashAlgorithmName, Stream, Span<byte>) reference
  • byte[] HashData(HashAlgorithmName, Stream) reference
  • ValueTask<byte[]> HashDataAsync(HashAlgorithmName, Stream, CancellationToken) reference
  • ValueTask<int> HashDataAsync(HashAlgorithmName, Stream, Memory<byte>, CancellationToken) reference
  • byte[] HmacData(HashAlgorithmName, byte[], byte[]) reference
  • byte[] HmacData(HashAlgorithmName, byte[], Stream) reference
  • int HmacData(HashAlgorithmName, ReadOnlySpan<byte>, ReadOnlySpan<byte>, Span<byte>) reference
  • byte[] HmacData(HashAlgorithmName, ReadOnlySpan<byte>, ReadOnlySpan<byte>) reference
  • int HmacData(HashAlgorithmName, ReadOnlySpan<byte>, Stream, Span<byte>) reference
  • byte[] HmacData(HashAlgorithmName, ReadOnlySpan<byte>, Stream) reference
  • ValueTask<byte[]> HmacDataAsync(HashAlgorithmName, byte[], Stream, CancellationToken) reference
  • ValueTask<byte[]> HmacDataAsync(HashAlgorithmName, ReadOnlyMemory<byte>, Stream, CancellationToken) reference
  • ValueTask<int> HmacDataAsync(HashAlgorithmName, ReadOnlyMemory<byte>, Stream, Memory<byte>, CancellationToken) reference
  • bool TryHashData(HashAlgorithmName, ReadOnlySpan<byte>, Span<byte>, int) reference
  • bool TryHmacData(HashAlgorithmName, ReadOnlySpan<byte>, ReadOnlySpan<byte>, Span<byte>, int) reference
  • bool VerifyHmac(HashAlgorithmName, byte[], byte[], byte[]) reference
  • bool VerifyHmac(HashAlgorithmName, byte[], Stream, byte[]) reference
  • bool VerifyHmac(HashAlgorithmName, ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>) reference
  • bool VerifyHmac(HashAlgorithmName, ReadOnlySpan<byte>, Stream, ReadOnlySpan<byte>) reference
  • ValueTask<bool> VerifyHmacAsync(HashAlgorithmName, byte[], Stream, byte[], CancellationToken) reference
  • ValueTask<bool> VerifyHmacAsync(HashAlgorithmName, ReadOnlyMemory<byte>, Stream, ReadOnlyMemory<byte>, CancellationToken) reference
  • void ZeroMemory(Span<byte>) reference
    • Note: Best-effort zeroing; unlike the BCL intrinsic the JIT may elide the clear if the buffer is not observed afterwards.

Utf16

  • int IndexOfInvalidSubsequence(ReadOnlySpan<char>) reference
  • bool IsValid(ReadOnlySpan<char>) reference

UnreachableException

IUnion

StringStream

ReadOnlyMemoryStream

WritableMemoryStream

ReadOnlySequenceStream

ArrayBufferWriter