System.SpanTests.ReadOnlySpanTests.CtorArrayIntStartTooLarge C# (CSharp) Méthode

CtorArrayIntStartTooLarge() private méthode

private CtorArrayIntStartTooLarge ( ) : void
Résultat void
        public static void CtorArrayIntStartTooLarge()
        {
            int[] a = new int[3];
            Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a, 4).DontBox());
        }