Further reading: https://devblogs.microsoft.com/premier-developer/the-in-modifier-and-the-readonly-structs-in-c/ Thanks @miloszskalecki