[Mono-list] Could not lookup zero argument constructor for class Ninject.StandardKernel
Robert Jordan
robertj at gmx.net
Wed Mar 4 11:15:27 UTC 2015
On 03.03.2015 21:57, mimi wrote:
> I embedded Mono to my c++ code and tested with basic stuffs (invoke c#
> methods wiht parameters and from multiple DLLs). I am trying to add Ninject
> stuff to my code
> (https://github.com/ninject/Ninject/blob/master/src/Ninject/StandardKernel.cs).
> The following is the code segmrnt:
[...]
> And can't figure out why the mono runtime can't find the default
> constructor. I tested with Visual Studio c# project and it works fine.
There isn't a default parameter-less ctor in this class (look at
StandardKernel.cs).
You want to look up and invoke one of the specific ctors and omit
mono_runtime_object_init().
Robert
More information about the Mono-list
mailing list