Skip to content

Commit

Permalink
Improve preprocessor directive
Browse files Browse the repository at this point in the history
  • Loading branch information
ds5678 committed Jan 24, 2025
1 parent 6b6b1ed commit f2c6aa1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,12 @@ public static void StructInitializerWithinObjectInitializer()
});
}

#if true
#if !NET40 && ROSLYN
public static ReadOnlySpan<byte> ReadOnlySpanInitializer_ByteArray()
{
return new byte[] { 1, 2, 3 };
}

public static ReadOnlySpan<int> ReadOnlySpanInitializer_Int32Array()
{
return new int[] { 1, 2, 3 };
Expand Down

0 comments on commit f2c6aa1

Please sign in to comment.