INNER CODE UNIT · C#

GetEnumerator

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

        public override System.Collections.IEnumerator GetEnumerator() => array.GetEnumerator();

        public static SpanOutput Create<T>(System.ReadOnlySpan<T> span, System.Type originalType) => new(
            span[..System.Math.Min(MaxLength, span.Length)].ToArray(),
            span.Length,
            originalType);
    }

    public sealed class CharSpanOutput(string text, int originalLength, System.Type originalType)
        : SpanOutputBase(originalLength, originalType)
    {
        private const int MaxLength = 10_000;

        public readonly string Text = text;

        public override System.Collections.IEnumerator GetEnumerator() => Text.GetEnumerator();

        public static CharSpanOutput Create(System.ReadOnlySpan<char> span, System.Type originalType)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…