System.SpanTests.ReadOnlySpanTests.CtorArrayIntNegativeStart C# (CSharp) Метод

CtorArrayIntNegativeStart() приватный Метод

private CtorArrayIntNegativeStart ( ) : void
Результат void
        public static void CtorArrayIntNegativeStart()
        {
            int[] a = new int[3];
            Assert.Throws<ArgumentOutOfRangeException>(() => new ReadOnlySpan<int>(a, -1).DontBox());
        }