System.SpanTests.ReadOnlySpanTests.CtorPointerNull C# (CSharp) Method

CtorPointerNull() private method

private CtorPointerNull ( ) : void
return void
        public static void CtorPointerNull()
        {
            unsafe
            {
                ReadOnlySpan<int> span = new ReadOnlySpan<int>((void*)null, 0);
                span.Validate<int>();
                Assert.True(Unsafe.AreSame<int>(ref Unsafe.AsRef<int>((void*)null), ref span.DangerousGetPinnableReference()));
            }
        }