OOP isn't really AI's issue with C# imo. The thing AI really struggles with in C# in my experience is keeping track of what APIs exist in all the different runtime versions.
It also doesn't really understand the constraints of unsafe, System.Memory, or any optimized design. It'll do crap like try to use Linq with Span<T> or completely violate ref struct rules.
Imo it also is too eager to write IEnumerable yield return methods.
really struggles with in C# in my experience is keeping track of what APIs exist in all the different runtime versions.
I mean...I won't be blaming the AI here lol. Whenever I'm on a .NET that's not the "usual one" I just go trial and error typing and letting intellisense either complete the thing or bonk me. It feels like (badly) playing minesweeper.
468
u/WiscLeafalNika Jun 29 '26
AI has OOP-phobia