I have a NuGet package that is been used by some projects internally. Now, while refactoring the project, I found several classes that were named inappropriately. I want to know if there is any way in C# change the class names and not break anything.
There is no way to rename identifiers without breaking other people code. The best thing you can do is to leave clAssNaME
identifier, provide new ClassName
and mark clAssNaME
as deprecated. Publish new release with documented and highlighted changelog.
When you're confident enough that most people managed to fix their code, delete the clAssNaME
.