diff --git a/README.md b/README.md index 9e8bba8..2442b07 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ The `` element in `FodyWeavers.xml` accepts the following attributes ## Examples -- A [reimplementation of the `System.Runtime.CompilerServices.Unsafe` class](src/InlineIL.Examples/Unsafe.cs) using InlineIL is provided as an example (compare to [the original IL code](https://github.com/dotnet/runtime/blob/main/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.il)). +- A [reimplementation of the `System.Runtime.CompilerServices.Unsafe` class](src/InlineIL.Examples/Unsafe.cs) using InlineIL is provided as an example (compare to [the original IL code](https://github.com/dotnet/runtime/blob/release/6.0/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.il)). - Unit tests can also serve as examples of API usage. See [verifiable](https://github.com/ltrzesniewski/InlineIL.Fody/tree/master/src/InlineIL.Tests.AssemblyToProcess) and [unverifiable](https://github.com/ltrzesniewski/InlineIL.Fody/tree/master/src/InlineIL.Tests.UnverifiableAssemblyToProcess) test cases. diff --git a/src/InlineIL.Examples/Unsafe.cs b/src/InlineIL.Examples/Unsafe.cs index 7152b8c..fe1f738 100644 --- a/src/InlineIL.Examples/Unsafe.cs +++ b/src/InlineIL.Examples/Unsafe.cs @@ -16,8 +16,8 @@ namespace InlineIL.Examples public static unsafe class Unsafe { // This is the InlineIL equivalent of System.Runtime.CompilerServices.Unsafe - // https://github.com/dotnet/runtime/blob/main/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.il - // Last update: ff135fe769534cf2d9fbd87bffcf65a16ab44c4a + // https://github.com/dotnet/runtime/blob/release/6.0/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.il + // Last update: 98ace7d4837fcd81c1f040b1f67e63e9e1973e13 - these methods became intrinsics starting from .NET 7 // The [NonVersionable] attribute is applied just to reduce the diff size between this implementation and the original one after decompilation.