Menu

#15 Unable to match class if name exists in multiple assemblies

open
nobody
None
5
2009-06-15
2009-06-15
jon dough
No

In the csharpscli, in Statement.cs, line 297, when performing a GetType this return null except if the typeName is defined in Mscorlib.dll. If the type is not defined there (or in the executing assembly—which would be csharpcli) the type name needs to be “the assembly qualified name of the type to get”, which is in the form…
"MyAssemblyName.MyClass, MyAssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
The issue that arises is that it won’t find the intended class, so if the classname is defined in multiple scopes the user will get the “exists in more than one scope" error message from line 314.

Discussion

  • jon dough

    jon dough - 2009-06-15
     
  • jon dough

    jon dough - 2009-06-15
    • summary: Unable to match class name exists in multiple assemblies --> Unable to match class if name exists in multiple assemblies
     

Log in to post a comment.