Rename class programmatically
How do I rename class programmatically?
This discussion touches on data move which, is not a concern in my case (BPL renames).
I also don't care about external references.
The best I got is:
- Get class text as string
- Replace class name in this string
- Save new string as new class
- Open new class as object
- Delete storage
- Compile class
Are there any better alternatives?
Also found this discussion.