Future proof NETCORE pragmas

This commit is contained in:
Jason Nelson
2022-01-28 11:50:34 -08:00
parent 13a9c066f7
commit fbd7d83cda

View File

@@ -107,7 +107,7 @@ namespace Markdig.Helpers
{
if (nonAsciiMap is null)
{
#if NETCOREAPP3_1
#if NETCOREAPP3_1_OR_GREATER
ref char textRef = ref Unsafe.AsRef(in text.GetPinnableReference());
for (; start <= end; start++)
{
@@ -154,7 +154,7 @@ namespace Markdig.Helpers
private int IndexOfOpeningCharacterNonAscii(string text, int start, int end)
{
#if NETCOREAPP3_1
#if NETCOREAPP3_1_OR_GREATER
ref char textRef = ref Unsafe.AsRef(in text.GetPinnableReference());
for (int i = start; i <= end; i++)
{