How can I get the correct text definition of a generic type using reflection?

前端 未结 6 1343
萌比男神i
萌比男神i 2020-12-01 14:17

I am working on code generation and ran into a snag with generics. Here is a \"simplified\" version of what is causing me issues.

Dictionary

        
6条回答
  •  被撕碎了的回忆
    2020-12-01 14:50

    I believe you can pass

    System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

    into Type.Parse(). That is a fully qualified type name, I think.

提交回复
热议问题