How to convert T[] to ReadOnlyMemory<T> in C# (implicit operator and explicit constructor)
Three ways to wrap a T[] in a ReadOnlyMemory<T> in .NET 11: the implicit conversion, the explicit constructor, and AsMemory(). When each is the right call.
1 post