Debugging code that emit types, bugged Type.FullName
Hello,
I'm trying to debug some tool.
It break since I started to use generics type, and try to emit new types based on it.
My type fullname is the following:
CK.Cris.ICommandResult`1[[System.Object, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]Now the tool try to generate a new type name, and end up creating this fullname:
CK.Cris.ICommandResult`1[[System.Object, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]_CKWhich look like invalid to me ? The .NET typebuilder then build a fullname by taking the last dot in the name, which pick up the version in the generic. There are exceptions that appear later, but i'm wondering if this in itself is not completly bugged (but I have no knowledge on these part of .NET). Where is the problem ? - Is that you shouldn't use Type.FullName, as a fullname when emitting a type ? - Is my Type.FullName is invalid ? - Does appending _CK at the end the only wrong thing happening here ?
0 Replies