3 ms·
Certainly, but reflection is almost never used. I don't think I've touched a single real-life codebase where it would get in the way in this manner. The same c
by Filligree 7y ago
Certainly, but reflection is almost never used. I don't think I've touched a single real-life codebase where it would get in the way in this manner.
The same can't be said for languages like JS.
- smhinsey 7y agoEven reflection is going to vary based on your IDE. If you use ReSharper or Rider, a safe rename refactoring will locate and optionally update string references as well. I don't know if VS itself has adopted this feature.
- Filligree 7y agoIDEA does the same thing. It's amazingly useful, even if you don't use reflection -- variable names end up in comments and documentation as well, all of which it will offer to change.
- ken 7y agoI’ve never touched a “real life” code base in a static language (including C#) where this wouldn’t be an issue. C# is not a sufficiently high level language that I can avoid duplication without the use of reflection.