INNER CODE UNIT · C#
HandleRefStructOutput
waf/CSharpRepl · CSharpRepl.Services/RuntimeHelper.cs:21
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)
{
private const int MaxLength = 1024;