Skip to content

Commit

Permalink
Update Unsafe example URL
Browse files Browse the repository at this point in the history
The file was deleted in dotnet/runtime#64861
  • Loading branch information
ltrzesniewski committed Feb 27, 2022
1 parent 3b1a487 commit 712c66e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ The `<InlineIL />` 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.

Expand Down
4 changes: 2 additions & 2 deletions src/InlineIL.Examples/Unsafe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 712c66e

Please sign in to comment.