System.SpanTests.SpanTests.CtorArrayIntStartEqualsLength C# (CSharp) Method

CtorArrayIntStartEqualsLength() private method

private CtorArrayIntStartEqualsLength ( ) : void
return void
        public static void CtorArrayIntStartEqualsLength()
        {
            // Valid for start to equal the array length. This returns an empty span that starts "just past the array."
            int[] a = { 91, 92, 93 };
            Span<int> span = new Span<int>(a, 3);
            span.Validate<int>();
        }
    }