I'm generating C# code in C# and I'd like to format string as proper C# class. Are there any libraries to do that? I need to replace forbidden characters, PascalCase string (between "_") etc.
I'm passing parameter "ClassName" to T4 template and I'd like to convert that parameter to proper C# class name.
ex.
Given:
ClassName = "This_is_MY_CLASS Name"
Then: I'd like to get
ProperClassName = "This_Is_My_Class_Name" // or "This_Is_My_Classname", both would be acceptable.