[RhinoMocks] Re: System.TypeLoadException when using MockRepository

2009-01-19 Thread Colin Desmond
OK, I am happy with that as a solution. Colin. On Jan 19, 12:45 pm, Ayende Rahien wrote: > The issue is a problem with modopt in the CLR.Since it is the same thing > from your perspective, please use int > > On Mon, Jan 19, 2009 at 5:24 AM, Colin Desmond < > > colin.desm...@btopenworld.com> wro

[RhinoMocks] Re: System.TypeLoadException when using MockRepository

2009-01-19 Thread Ayende Rahien
The issue is a problem with modopt in the CLR.Since it is the same thing from your perspective, please use int On Mon, Jan 19, 2009 at 5:24 AM, Colin Desmond < colin.desm...@btopenworld.com> wrote: > > OK, > > If I change the C++/CLI syntax from > > CoreLibrary::Common::IMSMContact^ LoadSMContact

[RhinoMocks] Re: System.TypeLoadException when using MockRepository

2009-01-19 Thread Colin Desmond
OK, If I change the C++/CLI syntax from CoreLibrary::Common::IMSMContact^ LoadSMContact(long nId); to CoreLibrary::Common::IMSMContact^ LoadSMContact(int nId); it all works, it doesn't like the long. This is interesting given that "int" and "long" both map to System.Int32! Colin On Jan 19,

[RhinoMocks] Re: System.TypeLoadException when using MockRepository

2009-01-19 Thread Colin Desmond
We're using 3.5 SP1. When I rewrite the interface as C# it is happy. I'll try playing with the C++/CLI syntax a little and see if I can get it to work. Colin On Jan 18, 9:15 pm, Ayende Rahien wrote: > what version of the runtime?if you write the same thing in C#, does it cause > any issues? >

[RhinoMocks] Re: System.TypeLoadException when using MockRepository

2009-01-18 Thread Ayende Rahien
what version of the runtime?if you write the same thing in C#, does it cause any issues? On Sun, Jan 18, 2009 at 3:26 PM, colin.desm...@btopenworld.com < colin.desm...@btopenworld.com> wrote: > > I am getting the following runtime error when I try and use RhinoMocks > 3.5: > > System.TypeLoadExce