API Diff between 5.13.0 and 4.7.1
496 Additions
176 Removals
DotNext
-
public static class BasicExtensions
-
public sealed class BitwiseComparer<T> : IEqualityComparer<T>, IComparer<T> where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static int GetHashCode(ref T value, bool salted = true)
- public static int GetHashCode(ref T value, int hash, Func<int, int, int> hashFunction, bool salted = true)
-
public enum BoundType
-
public static class Comparison
-
public static class DelegateHelpers
-
public struct DisclosedEndpoint<T> : IFiniteRangeEndpoint<T>, IRangeEndpoint<T> where T : IComparable<T>
-
public abstract class Disposable : IDisposable
-
public struct EnclosedEndpoint<T> : IFiniteRangeEndpoint<T>, IRangeEndpoint<T> where T : IComparable<T>
-
public static class EnumConverter
- public static TValue <TEnum, TValue>(TEnum value) where TEnum : struct, Enum where TValue : ValueType modreq(System.Runtime.InteropServices.UnmanagedType), INumberBase<TValue>, IConvertible
- public static byte ToByte<T>(T value) where T : struct, Enum
- public static T ToEnum<T>(long value) where T : struct, Enum
- public static T ToEnum<T>(int value) where T : struct, Enum
- public static T ToEnum<T>(short value) where T : struct, Enum
- public static T ToEnum<T>(byte value) where T : struct, Enum
- public static T ToEnum<T>(sbyte value) where T : struct, Enum
- public static T ToEnum<T>(ushort value) where T : struct, Enum
- public static T ToEnum<T>(uint value) where T : struct, Enum
- public static T ToEnum<T>(ulong value) where T : struct, Enum
- public static short ToInt16<T>(T value) where T : struct, Enum
- public static int ToInt32<T>(T value) where T : struct, Enum
- public static long ToInt64<T>(T value) where T : struct, Enum
- public static sbyte ToSByte<T>(T value) where T : struct, Enum
- public static ushort ToUInt16<T>(T value) where T : struct, Enum
- public static uint ToUInt32<T>(T value) where T : struct, Enum
- public static ulong ToUInt64<T>(T value) where T : struct, Enum
- public static TEnum ToEnum<TEnum, TValue>(TValue value) where TEnum : struct, Enum where TValue : ValueType modreq(System.Runtime.InteropServices.UnmanagedType), INumberBase<TValue>, IConvertible
-
public static class Func
-
public interface IFiniteRangeEndpoint<T> : IRangeEndpoint<T>
-
public interface IOptionMonad<T> : ISupplier<object>, IFunctional<Func<object>>
-
public interface IOptionMonad<T, TSelf> : IOptionMonad<T>, ISupplier<object>, IFunctional<Func<object>> where TSelf : struct, IOptionMonad<T, TSelf>
- T op_Explicit(ref TSelf container)
- bool op_False(ref TSelf container)
- T op_Explicit(TSelf& modreq(System.Runtime.InteropServices.InAttribute) container)
- bool op_True(ref TSelf container)
-
public interface IRangeEndpoint<T>
-
public interface IResettable
-
public interface IResultMonad<T, TError, TSelf> : IResultMonad<T, TError>, IOptionMonad<T>, ISupplier<object>, IFunctional<Func<object>>, IOptionMonad<T, TSelf> where TSelf : struct, IResultMonad<T, TError, TSelf>
-
public interface ISupplier<TResult> : IFunctional<Func<TResult>>
-
public static class ObjectExtensions
-
public static class OneDimensionalArray
-
public static class Optional
- public static T& modreq(System.Runtime.InteropServices.InAttribute) GetReference<T, TException>(ref Optional optional) where T : struct where TException : Exception
- public static T& modreq(System.Runtime.InteropServices.InAttribute) GetReference<T>(ref Optional optional, Func<Exception> exceptionFactory) where T : struct
- public static T& modreq(System.Runtime.InteropServices.InAttribute) GetReference<T>(ref Optional optional, method exceptionFactory) where T : struct
- public static T& modreq(System.Runtime.InteropServices.InAttribute) GetReference<T>(ref Optional optional) where T : struct
-
public struct Optional<T> : IEquatable<Optional<T>>, IEquatable<T>, IStructuralEquatable, IOptionMonad<T, Optional<T>>, IOptionMonad<T>, ISupplier<object>, IFunctional<Func<object>>
-
public static class Predicate
-
public static class RandomExtensions
-
public static class Result
- public static T& modreq(System.Runtime.InteropServices.InAttribute) GetReference<T>(ref Result result)
- public static T& modreq(System.Runtime.InteropServices.InAttribute) GetReference<T, TError>(ref Result result) where TError : struct, Enum
-
public struct Result<T> : IResultMonad<T, Exception, Result<T>>, IResultMonad<T, Exception>, IOptionMonad<T>, ISupplier<object>, IFunctional<Func<object>>, IOptionMonad<T, Result<T>>
-
public struct Result<T, TError> : IResultMonad<T, TError, Result<T, TError>>, IResultMonad<T, TError>, IOptionMonad<T>, ISupplier<object>, IFunctional<Func<object>>, IOptionMonad<T, Result<T, TError>> where TError : struct, Enum
-
public static class Span
- public static ReadOnlySpan<T> Advance<T>(this ref ReadOnlySpan source, int count)
- public static T& modreq(System.Runtime.InteropServices.InAttribute) Advance<T>(this ref ReadOnlySpan source)
- public static Span<T> Advance<T>(this ref Span source, int count)
- public static ref T Advance<T>(this ref Span source)
- public static int BitwiseCompare<T>(this Span<T> first, Span<T> second) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static bool BitwiseEquals<T>(this Span<T> first, Span<T> second) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static int BitwiseHashCode<T>(this Span<T> span, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static int BitwiseHashCode<T>(this ReadOnlySpan<T> span, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static int BitwiseHashCode<T>(this Span<T> span, int hash, Func<int, int, int> hashFunction, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static int BitwiseHashCode<T, THashFunction>(this Span<T> span, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType) where THashFunction : struct, IConsumer<int>, ISupplier<int>
- public static int BitwiseHashCode<T>(this ReadOnlySpan<T> span, int hash, Func<int, int, int> hashFunction, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static int BitwiseHashCode<T, THashFunction>(this ReadOnlySpan<T> span, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType) where THashFunction : struct, IConsumer<int>, ISupplier<int>
- public static long BitwiseHashCode64<T>(this Span<T> span, long hash, Func<long, long, long> hashFunction, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static long BitwiseHashCode64<T, THashFunction>(this Span<T> span, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType) where THashFunction : struct, IConsumer<long>, ISupplier<long>
- public static long BitwiseHashCode64<T>(this ReadOnlySpan<T> span, long hash, Func<long, long, long> hashFunction, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static long BitwiseHashCode64<T, THashFunction>(this ReadOnlySpan<T> span, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType) where THashFunction : struct, IConsumer<long>, ISupplier<long>
- public static long BitwiseHashCode64<T>(this Span<T> span, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static long BitwiseHashCode64<T>(this ReadOnlySpan<T> span, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static bool CheckMask<T>(this ReadOnlySpan<T> value, ReadOnlySpan<T> mask) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static Optional<T> FirstOrEmpty<T>(this ReadOnlySpan<T> span)
- public static Optional<T> FirstOrNone<T>(this ReadOnlySpan<T> span)
- public static int FromHex(this ReadOnlySpan<char> chars, Span<byte> output)
- public static byte[] FromHex(this ReadOnlySpan<char> chars)
- public static Optional<T> LastOrNone<T>(this ReadOnlySpan<T> span)
- public static Optional<T> PeekRandom<T>(this ReadOnlySpan<T> span, Random random)
- public static void Shuffle<T>(this Span<T> span, Random random)
- public static bool IsBitwiseAndNonZero<T>(this ReadOnlySpan<T> value, ReadOnlySpan<T> mask) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static void Move<T>(this Span<T> span, Range range, Index destinationIndex)
- public static int ToHex(this ReadOnlySpan<byte> bytes, Span<char> output, bool lowercased = false)
- public static string ToHex(this ReadOnlySpan<byte> bytes, bool lowercased = false)
- public static void Swap<T>(this Span<T> x, Span<T> y)
- public static void Swap<T>(this Span<T> span, Range range1, Range range2)
- public static Span<T> TrimLength<T>(this Span<T> span, int maxLength, out Span rest)
-
public static class StringExtensions
- public static MemoryTemplate<char> AsTemplate(this string template, string placeholder)
- public static MemoryTemplate<char> AsTemplate(this string template, char placeholder)
- public static string IfNullOrEmpty(this string str, string alt)
- public static bool IsNullOrEmpty(this StringBuilder builder)
-
public struct UserDataSlot<TValue> : IEquatable<UserDataSlot<TValue>>
-
public static class ValueTypeExtensions
DotNext.Buffers
-
public static class BufferHelpers
-
public abstract class BufferWriter<T> : Disposable, IBufferWriter<T>, ISupplier<ReadOnlyMemory<T>>, IFunctional<Func<ReadOnlyMemory<T>>>, IReadOnlyList<T>, IEnumerable<T>, IEnumerable, IReadOnlyCollection<T>, IGrowableBuffer<T>, IReadOnlySpanConsumer<T>, ISupplier<ReadOnlyMemory<T>, CancellationToken, ValueTask>, IFunctional<Func<ReadOnlyMemory<T>, CancellationToken, ValueTask>>, IDisposable, IResettable
-
public struct BufferWriterSlim<T>
- public ref T Add()
- public void Rewind(int count)
-
public static class ByteBuffer
- public static int Format<T>(this IBufferWriter<byte> writer, T value, ReadOnlySpan<char> format = default, IFormatProvider provider = null) where T : IUtf8SpanFormattable
- public static int Format<T>(this ref BufferWriterSlim writer, T value, ReadOnlySpan<char> format = default, IFormatProvider provider = null) where T : IUtf8SpanFormattable
- public static T Read<T>(this ref SpanReader reader) where T : IBinaryFormattable<T>
- public static T ReadBigEndian<T>(this ref SpanReader reader) where T : IBinaryInteger<T>
- public static T ReadLittleEndian<T>(this ref SpanReader reader) where T : IBinaryInteger<T>
- public static bool TryFormat<T>(this ref SpanWriter writer, T value, ReadOnlySpan<char> format = default, IFormatProvider provider = null) where T : IUtf8SpanFormattable
- public static bool TryRead<T>(this ref SpanReader reader, out T value) where T : IBinaryFormattable<T>
- public static bool TryWrite<T>(this ref SpanWriter writer, T value) where T : IBinaryFormattable<T>
- public static bool TryWrite(this ref SpanWriter writer, ref BigInteger value, bool isBigEndian = false, bool isUnsigned = false)
- public static void Write<T>(this IBufferWriter<byte> writer, T value) where T : IBinaryFormattable<T>
- public static int Write(this IBufferWriter<byte> writer, ref BigInteger value, bool isBigEndian = false, bool isUnsigned = false)
- public static void Write<T>(this ref BufferWriterSlim writer, T value) where T : IBinaryFormattable<T>
- public static int Write(this ref BufferWriterSlim writer, ref BigInteger value, bool isBigEndian = false, bool isUnsigned = false)
- public static void Write<T>(this ref SpanWriter writer, T value) where T : IBinaryFormattable<T>
- public static int WriteBigEndian<T>(this IBufferWriter<byte> writer, T value) where T : IBinaryInteger<T>
- public static int WriteBigEndian<T>(this ref BufferWriterSlim writer, T value) where T : IBinaryInteger<T>
- public static int WriteBigEndian<T>(this ref SpanWriter writer, T value) where T : IBinaryInteger<T>
- public static int WriteLittleEndian<T>(this IBufferWriter<byte> writer, T value) where T : IBinaryInteger<T>
- public static int WriteLittleEndian<T>(this ref BufferWriterSlim writer, T value) where T : IBinaryInteger<T>
- public static int WriteLittleEndian<T>(this ref SpanWriter writer, T value) where T : IBinaryInteger<T>
-
public static class CharBuffer
- public static void Concat(this IBufferWriter<char> writer, ReadOnlySpan<string> values)
- public static void Concat(this ref BufferWriterSlim writer, ReadOnlySpan<string> values)
- public static int Format<T>(this IBufferWriter<char> writer, T value, string format = null, IFormatProvider provider = null)
- public static int Format(this IBufferWriter<char> writer, CompositeFormat format, ReadOnlySpan<object> args, IFormatProvider provider = null)
- public static int Format<T>(this ref BufferWriterSlim writer, T value, string format = null, IFormatProvider provider = null)
- public static int Format(this ref BufferWriterSlim writer, CompositeFormat format, ReadOnlySpan<object> args, IFormatProvider provider = null)
- public static int Interpolate(this IBufferWriter<char> writer, IFormatProvider provider, ref BufferWriterInterpolatedStringHandler handler)
- public static int Interpolate(this IBufferWriter<char> writer, ref BufferWriterInterpolatedStringHandler handler)
- public static int Interpolate(this ref BufferWriterSlim writer, IFormatProvider provider, ref BufferWriterSlimInterpolatedStringHandler handler)
- public static int Interpolate(this ref BufferWriterSlim writer, ref BufferWriterSlimInterpolatedStringHandler handler)
- public static bool TryFormat<T>(this ref SpanWriter writer, T value, ReadOnlySpan<char> format = default, IFormatProvider provider = null) where T : ISpanFormattable
- public static bool TryFormat(this ref SpanWriter writer, CompositeFormat format, ReadOnlySpan<object> args, IFormatProvider provider = null)
- public static void Write(this IBufferWriter<char> writer, StringBuilder input)
- public static void Write(this ref BufferWriterSlim writer, StringBuilder input)
- public static void Write(this ref SpanWriter writer, StringBuilder input)
- public static void WriteLine(this IBufferWriter<char> writer)
- public static void WriteLine(this IBufferWriter<char> writer, ReadOnlySpan<char> characters)
- public static void WriteLine(this ref BufferWriterSlim writer)
- public static void WriteLine(this ref BufferWriterSlim writer, ReadOnlySpan<char> characters)
-
public interface IBinaryFormattable<TSelf> where TSelf : IBinaryFormattable<TSelf>
-
public static class MemoryAllocator
-
public static class Memory
- public static MemoryOwner<T> AllocateAtLeast<T>(this MemoryAllocator<T> allocator, int length)
- public static MemoryOwner<T> AllocateAtLeast<T>(int length)
- public static MemoryOwner<T> AllocateExactly<T>(this MemoryAllocator<T> allocator, int length)
- public static MemoryOwner<T> AllocateExactly<T>(int length)
- public static ReadOnlySequence<T> Concat<T>(this ReadOnlyMemory<T> first, ReadOnlyMemory<T> second)
- public static void CopyTo<T>(this ref ReadOnlySequence source, Span<T> destination, out int writtenCount)
- public static MemoryAllocator<T> GetArrayAllocator<T>()
- public static MemoryAllocator<T> GetPinnedArrayAllocator<T>() where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static ref T GetReference<T>(ref MemoryOwner owner)
- public static void ReleaseAll<T>(this ref MemoryOwner owner) where T : IDisposable
- public static void Resize<T>(this ref MemoryOwner owner, int newLength, MemoryAllocator<T> allocator = null)
- public static MemoryAllocator<T> ToAllocator<T>(this ArrayPool<T> pool)
- public static MemoryAllocator<T> ToAllocator<T>(this MemoryPool<T> pool)
- public static MemoryAllocator<T> ToAllocator<T>(this Func<int, IMemoryOwner<T>> provider)
- public static ReadOnlySequence<T> ToReadOnlySequence<T>(this IEnumerable<ReadOnlyMemory<T>> chunks)
- public static ReadOnlySequence<char> ToReadOnlySequence(this IEnumerable<string> strings)
- public static ReadOnlyMemory<T> TrimLength<T>(this ReadOnlyMemory<T> memory, int maxLength)
- public static Memory<T> TrimLength<T>(this Memory<T> memory, int maxLength)
- public static bool TryGetBlock<T>(this ref ReadOnlySequence sequence, int count, out ReadOnlyMemory span)
-
public struct MemoryOwner<T> : IMemoryOwner<T>, IDisposable, ISupplier<Memory<T>>, IFunctional<Func<Memory<T>>>, ISupplier<ReadOnlyMemory<T>>, IFunctional<Func<ReadOnlyMemory<T>>>
- public ref T this[IntPtr index] { get; }
- public static MemoryOwner<T> Create<TArg>(method provider, int length, TArg arg, bool exactSize = true)
-
public struct MemoryRental<T>
-
public static class MemoryTemplate
-
public struct MemoryTemplate<T> where T : IEquatable<T>
-
public sealed class PooledArrayBufferWriter<T> : BufferWriter<T>, ISupplier<ArraySegment<T>>, IFunctional<Func<ArraySegment<T>>>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
-
public sealed class PooledBufferWriter<T> : BufferWriter<T>, IMemoryOwner<T>, IDisposable
-
public sealed class PoolingArrayBufferWriter<T> : BufferWriter<T>, ISupplier<ArraySegment<T>>, IFunctional<Func<ArraySegment<T>>>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
-
public sealed class PoolingBufferWriter<T> : BufferWriter<T>, IMemoryOwner<T>, IDisposable
-
public struct SpanOwner<T>
-
public struct SpanReader<T>
- public T Read()
- public T& modreq(System.Runtime.InteropServices.InAttribute) Read()
-
public struct SpanWriter<T>
-
public class SparseBufferWriter<T> : Disposable, IGrowableBuffer<T>, IReadOnlySpanConsumer<T>, ISupplier<ReadOnlyMemory<T>, CancellationToken, ValueTask>, IFunctional<Func<ReadOnlyMemory<T>, CancellationToken, ValueTask>>, IDisposable, IResettable, ISupplier<ReadOnlySequence<T>>, IFunctional<Func<ReadOnlySequence<T>>>, IEnumerable<ReadOnlyMemory<T>>, IEnumerable, IBufferWriter<T>
DotNext.Buffers.Binary
DotNext.Buffers.Text
-
public struct Base64Decoder : IResettable
- public void DecodeFromUtf16(ref ReadOnlySequence chars, IBufferWriter<byte> output)
- public void DecodeFromUtf16<TConsumer>(ReadOnlySpan<char> chars, TConsumer output) where TConsumer : IReadOnlySpanConsumer<byte>
- public void DecodeFromUtf16<TArg>(ReadOnlySpan<char> chars, ReadOnlySpanAction<byte, TArg> callback, TArg arg)
- public void DecodeFromUtf16<TArg>(ReadOnlySpan<char> chars, method callback, TArg arg)
- public void DecodeFromUtf16(ReadOnlySpan<char> chars, ref BufferWriterSlim bytes)
- public void DecodeFromUtf8(ref ReadOnlySequence utf8Chars, IBufferWriter<byte> output)
- public void DecodeFromUtf8<TConsumer>(ReadOnlySpan<byte> utf8Chars, TConsumer output) where TConsumer : IReadOnlySpanConsumer<byte>
- public void DecodeFromUtf8<TArg>(ReadOnlySpan<byte> utf8Chars, ReadOnlySpanAction<byte, TArg> output, TArg arg)
- public void DecodeFromUtf8<TArg>(ReadOnlySpan<byte> utf8Chars, method output, TArg arg)
- public void DecodeFromUtf8(ReadOnlySpan<byte> utf8Chars, Stream output)
- public void DecodeFromUtf8(ReadOnlySpan<byte> chars, ref BufferWriterSlim bytes)
-
public struct Base64Encoder : IResettable
- public int BufferedDataSize { get; }
- public ReadOnlySpan<byte> BufferedData { get; }
- public static IAsyncEnumerable<ReadOnlyMemory<char>> EncodeToCharsAsync(IAsyncEnumerable<ReadOnlyMemory<byte>> bytes, MemoryAllocator<char> allocator = null, CancellationToken token = default)
- public static IAsyncEnumerable<ReadOnlyMemory<char>> EncodeToUtf16Async(IAsyncEnumerable<ReadOnlyMemory<byte>> bytes, MemoryAllocator<char> allocator = null, CancellationToken token = default)
- public void EncodeToChars(ReadOnlySpan<byte> bytes, IBufferWriter<char> output, bool flush = false)
- public MemoryOwner<char> EncodeToChars(ReadOnlySpan<byte> bytes, MemoryAllocator<char> allocator = null, bool flush = false)
- public void EncodeToChars<TConsumer>(ReadOnlySpan<byte> bytes, TConsumer output, bool flush = false) where TConsumer : IReadOnlySpanConsumer<char>
- public void EncodeToChars<TArg>(ReadOnlySpan<byte> bytes, ReadOnlySpanAction<char, TArg> output, TArg arg, bool flush = false)
- public void EncodeToChars<TArg>(ReadOnlySpan<byte> bytes, method output, TArg arg, bool flush = false)
- public void EncodeToChars(ReadOnlySpan<byte> bytes, TextWriter output, bool flush = false)
- public void EncodeToChars(ReadOnlySpan<byte> bytes, StringBuilder output, bool flush = false)
- public void EncodeToUtf8(ReadOnlySpan<byte> bytes, IBufferWriter<byte> output, bool flush = false)
- public MemoryOwner<char> EncodeToUtf16(ReadOnlySpan<byte> bytes, MemoryAllocator<char> allocator = null, bool flush = false)
- public void EncodeToUtf16(ReadOnlySpan<byte> bytes, ref BufferWriterSlim chars, bool flush = false)
- public void EncodeToUtf16(ReadOnlySpan<byte> bytes, IBufferWriter<char> chars, bool flush = false)
- public void EncodeToUtf8<TConsumer>(ReadOnlySpan<byte> bytes, TConsumer output, bool flush = false) where TConsumer : IReadOnlySpanConsumer<byte>
- public void EncodeToUtf8<TArg>(ReadOnlySpan<byte> bytes, ReadOnlySpanAction<byte, TArg> output, TArg arg, bool flush = false)
- public void EncodeToUtf8<TArg>(ReadOnlySpan<byte> bytes, method output, TArg arg, bool flush = false)
- public void EncodeToUtf8(ReadOnlySpan<byte> bytes, Stream output, bool flush = false)
- public void EncodeToUtf8(ReadOnlySpan<byte> bytes, ref BufferWriterSlim chars, bool flush = false)
- public void EncodeToUtf8(ReadOnlySpan<byte> bytes, IBufferWriter<byte> chars, bool flush = false)
- public int GetBufferedData(Span<byte> output)
DotNext.Collections.Generic
-
public static class AsyncEnumerable
- public static Task<MemoryOwner<T>> CopyAsync<T>(this IAsyncEnumerable<T> enumerable, int sizeHint = 0, MemoryAllocator<T> allocator = null, CancellationToken token = default)
- public static ValueTask<Optional<T>> ElementAtAsync<T>(this IAsyncEnumerable<T> collection, int index, CancellationToken token = default)
- public static IAsyncEnumerable<T> Empty<T>()
- public static ValueTask<Optional<T>> FirstOrNoneAsync<T>(this IAsyncEnumerable<T> seq, CancellationToken token = default)
- public static ValueTask<Optional<T>> FirstOrNoneAsync<T>(this IAsyncEnumerable<T> seq, Predicate<T> filter, CancellationToken token = default)
- public static ValueTask<T?> FirstOrNullAsync<T>(this IAsyncEnumerable<T> seq, CancellationToken token = default) where T : struct
- public static ValueTask ForEachAsync<T>(this IAsyncEnumerable<T> collection, Action<T> action, CancellationToken token = default)
- public static ValueTask ForEachAsync<T>(this IAsyncEnumerable<T> collection, Func<T, CancellationToken, ValueTask> action, CancellationToken token = default)
- public static ValueTask<Optional<T>> LastOrNoneAsync<T>(this IAsyncEnumerable<T> seq, CancellationToken token = default)
- public static ValueTask<T?> LastOrNullAsync<T>(this IAsyncEnumerable<T> seq, CancellationToken token = default) where T : struct
- public static ValueTask<bool> SkipAsync<T>(this IAsyncEnumerator<T> enumerator, int count)
- public static IAsyncEnumerable<T> SkipNulls<T>(this IAsyncEnumerable<T> collection)
- public static IAsyncEnumerable<T> Throw<T>(Exception e)
- public static Task<T[]> ToArrayAsync<T>(this IAsyncEnumerable<T> collection, int initialCapacity = 10, MemoryAllocator<T> allocator = null, CancellationToken token = default)
-
public static class Collection
- public struct ConsumingEnumerable<T> : IEnumerable<T>, IEnumerable
- public static IEnumerable<T> Append<T>(this IEnumerable<T> collection, T[] items)
- public static Optional<T> PeekRandom<T>(this IReadOnlyCollection<T> collection, Random random)
- public static MemoryOwner<T> Copy<T>(this IEnumerable<T> enumerable, int sizeHint = 0, MemoryAllocator<T> allocator = null)
- public static bool ElementAt<T>(this IEnumerable<T> collection, int index, out T element)
- public static Optional<T> FirstOrNone<T>(this IEnumerable<T> collection)
- public static void ForEach<T>(this IEnumerable<T> collection, Action<T> action)
- public static ValueTask ForEachAsync<T>(this IEnumerable<T> collection, Func<T, CancellationToken, ValueTask> action, CancellationToken token = default)
- public static ConsumingEnumerable<T> GetConsumer<T>(this IProducerConsumerCollection<T> collection)
- public static Optional<T> LastOrNone<T>(this IEnumerable<T> collection)
- public static IEnumerable<T> Prepend<T>(this IEnumerable<T> collection, T[] items)
- public static int SequenceHashCode<T>(this IEnumerable<T> sequence, bool salted = true)
- public static IEnumerable<T> SkipNulls<T>(this IEnumerable<T> collection)
- public static IAsyncEnumerable<T> ToAsyncEnumerable<T>(this IEnumerable<T> enumerable)
- public static IAsyncEnumerator<T> ToAsyncEnumerator<TEnumerator, T>(this TEnumerator enumerator, CancellationToken token) where TEnumerator : struct, IEnumerator<TEnumerator, T>
- public static IEnumerator<T> ToClassicEnumerator<TEnumerator, T>(this TEnumerator enumerator) where TEnumerator : struct, IEnumerator<TEnumerator, T>
- public static string ToString<T>(this IEnumerable<T> collection, string delimiter, string ifEmpty = "")
-
public static class Dictionary
-
public static class Enumerator
-
public interface IEnumerator<TSelf, T> where TSelf : struct, IEnumerator<TSelf, T>
-
public static class List
-
public static class Sequence
-
public static class Set
DotNext.Collections.Specialized
-
public class ConcurrentTypeMap : ITypeMap, IReadOnlyTypeMap, IEnumerable<object>, IEnumerable
-
public class ConcurrentTypeMap<TValue> : ITypeMap<TValue>, IReadOnlyTypeMap<TValue>, IEnumerable<TValue>, IEnumerable
- public Optional<TValue> Replace<TKey>(TValue value)
- public bool Set<TKey>(TValue newValue, out TValue oldValue)
-
public static class InvocationList
-
public struct InvocationList<TDelegate> : IReadOnlyList<TDelegate>, IEnumerable<TDelegate>, IEnumerable, IReadOnlyCollection<TDelegate> where TDelegate : MulticastDelegate
-
public interface IReadOnlyTypeMap : IEnumerable<object>, IEnumerable
-
public interface ITypeMap : IReadOnlyTypeMap, IEnumerable<object>, IEnumerable
- void Add<T>(T value)
- void Clear()
- bool Remove<T>()
- bool Remove<T>(out T value)
- void Set<T>(T value)
- bool Set<T>(T newValue, out T oldValue)
-
public interface ITypeMap<TValue> : IReadOnlyTypeMap<TValue>
- Optional<TValue> Replace<TKey>(TValue value)
- bool Set<TKey>(TValue newValue, out TValue oldValue)
-
public struct SingletonList<T> : IReadOnlyList<T>, IEnumerable<T>, IEnumerable, IReadOnlyCollection<T>, IList<T>, ICollection<T>, ITuple, IReadOnlySet<T>
-
public class TypeMap : ITypeMap, IReadOnlyTypeMap, IEnumerable<object>, IEnumerable
-
public class TypeMap<TValue> : ITypeMap<TValue>, IReadOnlyTypeMap<TValue>, IEnumerable<TValue>, IEnumerable
- public Optional<TValue> Replace<TKey>(TValue value)
- public bool Set<TKey>(TValue newValue, out TValue oldValue)
DotNext.ComponentModel.DataAnnotations
DotNext.Diagnostics
-
public struct Timestamp : IComparable<Timestamp>, IComparisonOperators<Timestamp, Timestamp, bool>, IEqualityOperators<Timestamp, Timestamp, bool>, IAdditionOperators<Timestamp, TimeSpan, Timestamp>, ISubtractionOperators<Timestamp, TimeSpan, Timestamp>, IInterlockedOperations<Timestamp>, IEquatable<Timestamp>
DotNext.Generic
DotNext.IO
-
public struct StreamConsumer : IReadOnlySpanConsumer<byte>, ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>, IFunctional<Func<ReadOnlyMemory<byte>, CancellationToken, ValueTask>>, IEquatable<StreamConsumer>, IFlushable
-
public static class StreamSource
-
public struct TextConsumer : IReadOnlySpanConsumer<char>, ISupplier<ReadOnlyMemory<char>, CancellationToken, ValueTask>, IFunctional<Func<ReadOnlyMemory<char>, CancellationToken, ValueTask>>, IFlushable, IEquatable<TextConsumer>
DotNext.IO.Hashing
-
public class FNV1a<THash, TParameters> : NonCryptographicHashAlgorithm, IResettable where THash : ValueType modreq(System.Runtime.InteropServices.UnmanagedType), IBinaryNumber<THash> where TParameters : IFNV1aParameters<THash>
- public FNV1a(bool salted = false)
- public static THash Hash<T>(ReadOnlySpan<T> data, bool salted = false) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static THash Hash<T, TIndex>(Func<T, TIndex, THash> accessor, TIndex count, T arg, bool salted = false) where TIndex : IComparisonOperators<TIndex, TIndex, bool>, IAdditiveIdentity<TIndex, TIndex>, IIncrementOperators<TIndex>
- public static THash Hash(Void* address, UIntPtr length, bool salted = false)
- public static THash Hash(THash data)
- public void Append<T>(ReadOnlySpan<T> source) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public void Append(Void* address, UIntPtr length)
- public void Append(THash value)
- public THash GetCurrentHash()
-
public sealed class FNV1a128 : FNV1a<Int128, FNV1aParameters>
-
public sealed class FNV1a32 : FNV1a<int, FNV1aParameters>
- public FNV1a32(bool salted = false)
-
public sealed class FNV1a64 : FNV1a<long, FNV1aParameters>
- public FNV1a64(bool salted = false)
-
public struct FNV1aParameters : IFNV1aParameters<int>, IFNV1aParameters<long>, IFNV1aParameters<Int128>
-
public interface IFNV1aParameters<THash> where THash : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
DotNext.Numerics
-
public static class BitVector
-
public static class Number
- public static TResult FromBits<TResult>(this ReadOnlySpan<bool> bits) where TResult : struct, IBinaryInteger<TResult>
- public static void GetBits<T>(this T value, Span<bool> bits) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType), IBinaryInteger<T>
- public static int GetMaxByteCount<T>() where T : IBinaryInteger<T>
- public static T GetPrime<T>(T lowerBound, ReadOnlySpan<T> cachedPrimes = default) where T : struct, IBinaryInteger<T>, ISignedNumber<T>, IMinMaxValue<T>
- public static bool IsPrime<T>(T value) where T : struct, IBinaryInteger<T>, ISignedNumber<T>
- public static bool IsSigned<T>() where T : INumberBase<T>
- public static TOutput Normalize<TInput, TOutput>(this TInput value, TInput min, TInput max) where TInput : struct, INumberBase<TInput>, IComparisonOperators<TInput, TInput, bool> where TOutput : struct, IFloatingPoint<TOutput>
- public static double Normalize(this ulong value)
- public static double Normalize(this long value)
- public static float Normalize(this uint value)
- public static float Normalize(this int value)
DotNext.Patterns
DotNext.Reflection
DotNext.Runtime
-
public abstract class BoxedValue<T> where T : struct
-
public struct GCLatencyModeScope : IDisposable
-
public static class Intrinsics
- public static bool AreSame<T>(ref T first, ref T second)
- public static int AlignOf<T>()
- public static bool AreCompatible<T1, T2>()
- public static void Bitcast<T, TResult>(ref T input, out TResult output) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType) where TResult : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static void ClearBits(Void* address, IntPtr length)
- public static void ClearBits(Void* address, UIntPtr length)
- public static int Compare(Void* first, Void* second, IntPtr length)
- public static void Copy<T>(ref T source, out T destination, long count) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static T DefaultOf<T>()
- public static bool Equals(Void* first, Void* second, IntPtr length)
- public static Exception Error(object obj)
- public static void Finalize(object obj)
- public static int GetHashCode32<T>(Func<T, int, int> getter, int count, T arg, bool salted = true)
- public static int GetHashCode32(Void* source, IntPtr length, int hash, Func<int, int, int> hashFunction, bool salted = true)
- public static int GetHashCode32(Void* source, UIntPtr length, int hash, Func<int, int, int> hashFunction, bool salted = true)
- public static int GetHashCode32<THashFunction>(Void* source, IntPtr length, bool salted = true) where THashFunction : struct, IConsumer<int>, ISupplier<int>
- public static int GetHashCode32<THashFunction>(Void* source, UIntPtr length, bool salted = true) where THashFunction : struct, IConsumer<int>, ISupplier<int>
- public static int GetHashCode32(Void* source, IntPtr length, bool salted = true)
- public static int GetHashCode32(Void* source, UIntPtr length, bool salted = true)
- public static long GetHashCode64<T>(Func<T, int, long> getter, int count, T arg, bool salted = true)
- public static long GetHashCode64(Void* source, IntPtr length, long hash, Func<long, long, long> hashFunction, bool salted = true)
- public static long GetHashCode64(Void* source, UIntPtr length, long hash, Func<long, long, long> hashFunction, bool salted = true)
- public static long GetHashCode64<THashFunction>(Void* source, IntPtr length, bool salted = true) where THashFunction : struct, IConsumer<long>, ISupplier<long>
- public static long GetHashCode64<THashFunction>(Void* source, UIntPtr length, bool salted = true) where THashFunction : struct, IConsumer<long>, ISupplier<long>
- public static long GetHashCode64(Void* source, IntPtr length, bool salted = true)
- public static long GetHashCode64(Void* source, UIntPtr length, bool salted = true)
- public static IntPtr GetLength(Array array)
- public static TBase& modreq(System.Runtime.InteropServices.InAttribute) GetReadonlyRef<T, TBase>(this T[] array, IntPtr index) where T : TBase
- public static UIntPtr GetLength(this Array array)
- public static bool HasFlag<T>(T value, T flag) where T : struct, Enum
- public static void Reverse<T>(ref T value) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static T ShallowCopy<T>(T obj)
- public static void Throw(object obj)
- public static void ThrowIfNull<T>(ref T value)
-
public static class Reference
-
public struct Reference<TValue>
-
public struct ReadOnlyValueReference<T> : IEquatable<ReadOnlyValueReference<T>>, IEqualityOperators<ReadOnlyValueReference<T>, ReadOnlyValueReference<T>, bool>, ISupplier<T>, IFunctional<Func<T>>
-
public struct ValueReference<T> : IEquatable<ValueReference<T>>, IEqualityOperators<ValueReference<T>, ValueReference<T>, bool>, ISupplier<T>, IFunctional<Func<T>>, IConsumer<T>, IFunctional<Action<T>>
DotNext.Runtime.Caching
DotNext.Runtime.CompilerServices
DotNext.Text
DotNext.Threading
-
public static class AsyncDelegate
-
public static class Atomic
- public struct Boolean : IEquatable<bool>
- public static double AccumulateAndGet<TAccumulator>(ref double value, double x, TAccumulator accumulator) where TAccumulator : ISupplier<double, double, double>
- public static double AccumulateAndGet(ref double value, double x, Func<double, double, double> accumulator)
- public static IntPtr AccumulateAndGet<TAccumulator>(ref IntPtr value, IntPtr x, TAccumulator accumulator) where TAccumulator : ISupplier<IntPtr, IntPtr, IntPtr>
- public static IntPtr AccumulateAndGet(ref IntPtr value, IntPtr x, Func<IntPtr, IntPtr, IntPtr> accumulator)
- public static int AccumulateAndGet<TAccumulator>(ref int value, int x, TAccumulator accumulator) where TAccumulator : ISupplier<int, int, int>
- public static int AccumulateAndGet(ref int value, int x, Func<int, int, int> accumulator)
- public static long AccumulateAndGet<TAccumulator>(ref long value, long x, TAccumulator accumulator) where TAccumulator : ISupplier<long, long, long>
- public static long AccumulateAndGet(ref long value, long x, Func<long, long, long> accumulator)
- public static float AccumulateAndGet<TAccumulator>(ref float value, float x, TAccumulator accumulator) where TAccumulator : ISupplier<float, float, float>
- public static float AccumulateAndGet(ref float value, float x, Func<float, float, float> accumulator)
- public static UIntPtr AccumulateAndGet<TAccumulator>(ref UIntPtr value, UIntPtr x, TAccumulator accumulator) where TAccumulator : ISupplier<UIntPtr, UIntPtr, UIntPtr>
- public static UIntPtr AccumulateAndGet(ref UIntPtr value, UIntPtr x, Func<UIntPtr, UIntPtr, UIntPtr> accumulator)
- public static uint AccumulateAndGet<TAccumulator>(ref uint value, uint x, TAccumulator accumulator) where TAccumulator : ISupplier<uint, uint, uint>
- public static uint AccumulateAndGet(ref uint value, uint x, Func<uint, uint, uint> accumulator)
- public static ulong AccumulateAndGet<TAccumulator>(ref ulong value, ulong x, TAccumulator accumulator) where TAccumulator : ISupplier<ulong, ulong, ulong>
- public static ulong AccumulateAndGet(ref ulong value, ulong x, Func<ulong, ulong, ulong> accumulator)
- public static double GetAndAccumulate<TAccumulator>(ref double value, double x, TAccumulator accumulator) where TAccumulator : ISupplier<double, double, double>
- public static double GetAndAccumulate(ref double value, double x, Func<double, double, double> accumulator)
- public static IntPtr GetAndAccumulate<TAccumulator>(ref IntPtr value, IntPtr x, TAccumulator accumulator) where TAccumulator : ISupplier<IntPtr, IntPtr, IntPtr>
- public static IntPtr GetAndAccumulate(ref IntPtr value, IntPtr x, Func<IntPtr, IntPtr, IntPtr> accumulator)
- public static int GetAndAccumulate<TAccumulator>(ref int value, int x, TAccumulator accumulator) where TAccumulator : ISupplier<int, int, int>
- public static int GetAndAccumulate(ref int value, int x, Func<int, int, int> accumulator)
- public static long GetAndAccumulate<TAccumulator>(ref long value, long x, TAccumulator accumulator) where TAccumulator : ISupplier<long, long, long>
- public static long GetAndAccumulate(ref long value, long x, Func<long, long, long> accumulator)
- public static float GetAndAccumulate<TAccumulator>(ref float value, float x, TAccumulator accumulator) where TAccumulator : ISupplier<float, float, float>
- public static float GetAndAccumulate(ref float value, float x, Func<float, float, float> accumulator)
- public static UIntPtr GetAndAccumulate<TAccumulator>(ref UIntPtr value, UIntPtr x, TAccumulator accumulator) where TAccumulator : ISupplier<UIntPtr, UIntPtr, UIntPtr>
- public static UIntPtr GetAndAccumulate(ref UIntPtr value, UIntPtr x, Func<UIntPtr, UIntPtr, UIntPtr> accumulator)
- public static uint GetAndAccumulate<TAccumulator>(ref uint value, uint x, TAccumulator accumulator) where TAccumulator : ISupplier<uint, uint, uint>
- public static uint GetAndAccumulate(ref uint value, uint x, Func<uint, uint, uint> accumulator)
- public static ulong GetAndAccumulate<TAccumulator>(ref ulong value, ulong x, TAccumulator accumulator) where TAccumulator : ISupplier<ulong, ulong, ulong>
- public static ulong GetAndAccumulate(ref ulong value, ulong x, Func<ulong, ulong, ulong> accumulator)
- public static double GetAndUpdate<TUpdater>(ref double value, TUpdater updater) where TUpdater : ISupplier<double, double>
- public static double GetAndUpdate(ref double value, Func<double, double> updater)
- public static IntPtr GetAndUpdate<TUpdater>(ref IntPtr value, TUpdater updater) where TUpdater : ISupplier<IntPtr, IntPtr>
- public static IntPtr GetAndUpdate(ref IntPtr value, Func<IntPtr, IntPtr> updater)
- public static int GetAndUpdate<TUpdater>(ref int value, TUpdater updater) where TUpdater : ISupplier<int, int>
- public static int GetAndUpdate(ref int value, Func<int, int> updater)
- public static long GetAndUpdate<TUpdater>(ref long value, TUpdater updater) where TUpdater : ISupplier<long, long>
- public static long GetAndUpdate(ref long value, Func<long, long> updater)
- public static float GetAndUpdate<TUpdater>(ref float value, TUpdater updater) where TUpdater : ISupplier<float, float>
- public static float GetAndUpdate(ref float value, Func<float, float> updater)
- public static UIntPtr GetAndUpdate<TUpdater>(ref UIntPtr value, TUpdater updater) where TUpdater : ISupplier<UIntPtr, UIntPtr>
- public static UIntPtr GetAndUpdate(ref UIntPtr value, Func<UIntPtr, UIntPtr> updater)
- public static uint GetAndUpdate<TUpdater>(ref uint value, TUpdater updater) where TUpdater : ISupplier<uint, uint>
- public static uint GetAndUpdate(ref uint value, Func<uint, uint> updater)
- public static ulong GetAndUpdate<TUpdater>(ref ulong value, TUpdater updater) where TUpdater : ISupplier<ulong, ulong>
- public static ulong GetAndUpdate(ref ulong value, Func<ulong, ulong> updater)
- public static bool IsAtomic<T>()
- public static double UpdateAndGet<TUpdater>(ref double value, TUpdater updater) where TUpdater : ISupplier<double, double>
- public static double UpdateAndGet(ref double value, Func<double, double> updater)
- public static IntPtr UpdateAndGet<TUpdater>(ref IntPtr value, TUpdater updater) where TUpdater : ISupplier<IntPtr, IntPtr>
- public static IntPtr UpdateAndGet(ref IntPtr value, Func<IntPtr, IntPtr> updater)
- public static int UpdateAndGet<TUpdater>(ref int value, TUpdater updater) where TUpdater : ISupplier<int, int>
- public static int UpdateAndGet(ref int value, Func<int, int> updater)
- public static long UpdateAndGet<TUpdater>(ref long value, TUpdater updater) where TUpdater : ISupplier<long, long>
- public static long UpdateAndGet(ref long value, Func<long, long> updater)
- public static float UpdateAndGet<TUpdater>(ref float value, TUpdater updater) where TUpdater : ISupplier<float, float>
- public static float UpdateAndGet(ref float value, Func<float, float> updater)
- public static UIntPtr UpdateAndGet<TUpdater>(ref UIntPtr value, TUpdater updater) where TUpdater : ISupplier<UIntPtr, UIntPtr>
- public static UIntPtr UpdateAndGet(ref UIntPtr value, Func<UIntPtr, UIntPtr> updater)
- public static uint UpdateAndGet<TUpdater>(ref uint value, TUpdater updater) where TUpdater : ISupplier<uint, uint>
- public static uint UpdateAndGet(ref uint value, Func<uint, uint> updater)
- public static ulong UpdateAndGet<TUpdater>(ref ulong value, TUpdater updater) where TUpdater : ISupplier<ulong, ulong>
- public static ulong UpdateAndGet(ref ulong value, Func<ulong, ulong> updater)
-
public struct AtomicBoolean : IEquatable<bool>
-
public static class AtomicDouble
-
public static class AtomicEnum
-
public struct AtomicEnum<TEnum> : IEquatable<TEnum> where TEnum : struct, Enum
-
public static class AtomicInt32
-
public static class AtomicInt64
-
public static class AtomicIntPtr
-
public static class AtomicReference
-
public static class AtomicSingle
-
public static class AtomicUInt32
-
public static class AtomicUInt64
-
public class Epoch
-
public interface IInterlockedOperations<T>
-
public struct Timeout
DotNext.Threading.Tasks