Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Series
Backend
PART 09
ref Returns, ref Locals, in Parameters and ref struct in C#
Moving values by reference instead of copying them: ref locals, ref returns, ref readonly, the defensive-copy trap with in parameters, readonly structs and writing your own ref struct.
7 Nov 2026
10 min
11
Backend
PART 08
struct vs class in C#: Copy Semantics and readonly struct
A struct is a value type: the copies hidden in properties, indexers and foreach, C# 10 parameterless constructors versus default, the inheritance rules of structs, an immutable Money with readonly struct and with, the second copy created by boxing, struct equality and when to make a type a struct.
7 Nov 2026
10 min
4