INNER CODE UNIT · C#

SpanOutputBase

waf/CSharpRepl · CSharpRepl.Services/RuntimeHelper.cs:23

    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;

        private readonly System.Array array = array;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…