Lokad / ILPack

Serialize .NET Core assemblies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type names containing special characters

osen1 opened this issue · comments

commented

We occasionally have Type names that contain a "+". Let's say for example "A+B". Such types are internally represented as "A\+B", according to https://docs.microsoft.com/en-us/dotnet/framework/reflection-and-codedom/specifying-fully-qualified-type-names#specify-special-characters
If I save such a type with .Net Framework's AssemblyBuilder.Save, it will be saved as "A+B". However, ILPack saves it as "A\u005cB".
-> Is a treatment of escaped special characters missing in ILPack?

@osen1 You are correct. Escaped special characters are not handled by ILPack. Nice catch!

commented

Thanks. I submitted a pull request.