GetType() of a type in another project

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mostapha

    #1

    GetType() of a type in another project

    Hi all
    I'm currently using Type.GetType() method to get the type of the string input parameter. But the entire parameter is in another namespace and other project like this:

    Type.GetType("O therNamespace.e nmuType1")

    but this method always return null.
    Can anybody help me by this method?
  • Christian Binder
    Recognized Expert New Member
    • Jan 2008
    • 218

    #2
    You could try using Type t = typeof(OtherNam espace.enmuType 19;.
    So it will be checked during compile-time if that type exist.

    Comment

    Working...