Skip to content

Commit

Permalink
Limit changes to .NET 8 and greater
Browse files Browse the repository at this point in the history
  • Loading branch information
Keboo committed Sep 10, 2023
1 parent f793e96 commit d0d0666
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Runtime.InteropServices;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter23.Listing23_20.Tests;

#if NET8_0_OR_GREATER
[TestClass]
public class Listing21_20_Tests
{
Expand All @@ -21,3 +21,4 @@ public void GetProcessorIdReturnsCorrectValue()
});
}
}
#endif
2 changes: 2 additions & 0 deletions src/Chapter23/Listing23.20.DesignatingABlockForUnsafeCode.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter23.Listing23_20;

#if NET8_0_OR_GREATER
#region INCLUDE
using System;
using System.Runtime.InteropServices;
Expand Down Expand Up @@ -268,3 +269,4 @@ public static IntPtr AllocExecutionBlock(int size)
size, GetCurrentProcessHandle());
}
}
#endif

0 comments on commit d0d0666

Please sign in to comment.