INNER CODE UNIT · C#
HandleMemoryOutput
waf/CSharpRepl · CSharpRepl.Services/RuntimeHelper.cs:19
public static CharSpanOutput HandleMemoryOutput(System.ReadOnlyMemory<char> memory) => CharSpanOutput.Create(memory.Span, typeof(System.ReadOnlyMemory<char>));
public static RefStructOutput HandleRefStructOutput(string text) => new(text);
public abstract class SpanOutputBase(int originalLength, System.Type originalType)
: System.Collections.IEnumerable
{
public readonly int OriginalLength = originalLength;
public readonly System.Type OriginalType = originalType;
//Necessary for correct output formatting.
public int Count => OriginalLength;
public abstract System.Collections.IEnumerator GetEnumerator();
}
public sealed class SpanOutput(System.Array array, int originalLength, System.Type originalType)
: SpanOutputBase(originalLength, originalType)