❔ Exception thrown in Rider but not in VS2022 - C#