System.SpanTests.SpanTests.CtorArrayIntIntNegativeLength C# (CSharp) 메소드

CtorArrayIntIntNegativeLength() 개인적인 메소드

private CtorArrayIntIntNegativeLength ( ) : void
리턴 void
        public static void CtorArrayIntIntNegativeLength()
        {
            int[] a = new int[3];
            Assert.Throws<ArgumentOutOfRangeException>(() => new Span<int>(a, 0, -1).DontBox());
        }