Hi Skydiver, thanks. Is the above implementation specific to a particular flavor of .net environment? Under VS2017, I tried the above code in both 4.6.1 and Core 2.1 and they had different compilation errors.
Under 4.6.1, the error was around ReadOnlySpan, which says : type or namespace...