This is the seventh part of the .NET Internals Cookbook series. For your convenience you can find other parts in the table of contents in Part 0 – Table of contents 45. Should we always avoid boxing? Boxing is expensive, it wraps value types into reference instances so we lose some performance. However, take this … Continue reading .NET Internals Cookbook Part 7 — Word tearing, locking and others
Month: March 2019
.NET Internals Cookbook Part 6 — Object internals
This is the sixth part of the .NET Internals Cookbook series. For your convenience you can find other parts in the table of contents in Part 0 – Table of contents 36. What is a shim? .NET applications are started directly, the same way as native applications are. The entry point of the binary points … Continue reading .NET Internals Cookbook Part 6 — Object internals
.NET Internals Cookbook Part 5 — Methods, parameters, modifiers
This is the fifth part of the .NET Internals Cookbook series. For your convenience you can find other parts in the table of contents in Part 0 – Table of contents 27. Can two methods differ in return type only? Not in C#, but they can in IL. See this: Interesting part is this: The … Continue reading .NET Internals Cookbook Part 5 — Methods, parameters, modifiers
.NET Internals Cookbook Part 4 — Type members
This is the fourth part of the .NET Internals Cookbook series. For your convenience you can find other parts in the table of contents in Part 0 – Table of contents 18. Can you add type constructor to the interface? In C# no. In IL — yes. See the code below: If you are not … Continue reading .NET Internals Cookbook Part 4 — Type members
.NET Internals Cookbook Part 3 — Initialization tricks
This is the third part of the .NET Internals Cookbook series. For your convenience you can find other parts in the table of contents in Part 0 – Table of contents 13. Can a variable be true and false at the same time? Yes, see this Output: The output is very misleading and that is … Continue reading .NET Internals Cookbook Part 3 — Initialization tricks