Skip to content

Commit

Permalink
fixing tracking codes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpowell committed Sep 25, 2019
1 parent 7813664 commit 554bbea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/posts/2019-09-17-what-is-an-opcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ nop
ret
```

I'm not sure why the [`nop`](https://docs.microsoft.com/en-us/dotnet/api/system.reflection.emit.opcodes.nop?view=netcore-2.2{{<cda>}}) OpCode is included by the compiler, it doesn't do anything and thus can be omitted.
I'm not sure why the [`nop`](https://docs.microsoft.com/en-us/dotnet/api/system.reflection.emit.opcodes.nop?view=netcore-2.2&{{<cda>}}) OpCode is included by the compiler, it doesn't do anything and thus can be omitted.

## Conclusion

Expand All @@ -138,7 +138,7 @@ Hopefully you're still with me and have enjoyed dipping your toe into understand
Count += count;
```

With our method implementation we used the [expression body syntax](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/methods?{{<cda>}}#expression-body-definitions) rather than a traditional [method signature](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/methods{{<cda>}}#method-signatures).
With our method implementation we used the [expression body syntax](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/methods?{{<cda>}}#expression-body-definitions) rather than a traditional [method signature](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/methods?{{<cda>}}#method-signatures).

What you may be interested to know is that there is no difference in the IL generated for these two method types, since they are functionally equivalent.

Expand Down

0 comments on commit 554bbea

Please sign in to comment.