jon dough
-
2009-06-15
Unable to match class if name exists in multiple assemblies
Brought to you by:
knizhnik
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.