[mono-android] Activator.CreateInstance

Dave Goughnour david.goughnour at elantech-inc.com
Thu Mar 24 21:47:56 EDT 2011


I'm porting code that runs fine in .NET and am having problems with Activator.CreateInstance. I tried the version that takes in a type and calls the default constructor as well as the version that takes a type and an object[] of parameters and both complain that the method is not found but they both work fine in .NET. Any known issues with this?

The only thing I can think of is that the type being instanced is not in the same dll as the code calling CreateInstance. The call to CreateInstance is in a library that is refenced by the dll where the type is actually defined. Not sure if this could be an issue or not.

Thanks
Dave Goughnour

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110324/559f4783/attachment.html 


More information about the Monodroid mailing list