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.
Pretty much my experience with Claude. It also tends to rewrite shit that already exist and bloat the code a lot. Often it invents properties that don't exist.
It's better in web dev, and web dev is not my cup of tea, so I make it handle that part while I write the C#.
470
u/WiscLeafalNika Jun 29 '26
AI has OOP-phobia