Custom memory allocation in C# Part 15 — Allocating object on a stack without unsafe

This is the fifteenth part of the Custom memory allocation series. For your convenience you can find other parts in the table of contents in Part 1 — Allocating object on a stack Last time we saw how to do unsafe operations without the unsafe keyword. This time we’ll allocate some reference type on a … Continue reading Custom memory allocation in C# Part 15 — Allocating object on a stack without unsafe

Custom memory allocation in C# Part 14 — Unsafe code without unsafe keyword

This is the fourteenth part of the Custom memory allocation series. For your convenience you can find other parts in the table of contents in Part 1 — Allocating object on a stack This whole series is about unsafe operations and manual memory managing. However, all the things I’ve shown can be done with no … Continue reading Custom memory allocation in C# Part 14 — Unsafe code without unsafe keyword

.NET Inside Out Part 26 – Multiple identity inheritance in C#

This is the twentieth sixth part of the .NET Inside Out series. For your convenience you can find other parts in the table of contents in Part 1 – Virtual and non-virtual calls in C# We know C# has multiple signature (interface) and implementation inheritance. The latter doesn’t support full polymorphic invocations, though, but we … Continue reading .NET Inside Out Part 26 – Multiple identity inheritance in C#

Types and Programming Languages Part 3 — Finally during termination

This is the third part of the Types and Programming Languages series. For your convenience you can find other parts in the table of contents in Part 1 — Do not return in finally Let’s take the following code: Let’s say there is no catch block anywhere on this thread. What’s going to happen? That … Continue reading Types and Programming Languages Part 3 — Finally during termination