Can we get string reference from ReadonlyMemory<char> without re-allocating on heap.
ReadonlyMemory<char> someChars;//I got ReadOnlyMemory<char> from somewhere
string str = someChars.SomeMethodToGetStringWithoutAllocation();//I am looking for this
Can we get string reference from ReadonlyMemory<char> without re-allocating on heap.
ReadonlyMemory<char> someChars;//I got ReadOnlyMemory<char> from somewhere
string str = someChars.SomeMethodToGetStringWithoutAllocation();//I am looking for this