philiplaureano / LinFu

A framework that adds mixins, inversion of control, DbC, and other language features to the Common Language Runtime.
http://www.codeproject.com/KB/cs/LinFuPart1.aspx
206 stars 30 forks source link

Method 'set_Hello' not found on type 'System.Object #27

Open FactEngineCommunity opened 9 years ago

FactEngineCommunity commented 9 years ago

Hi Philip,

Long time no speak. I've got a realword use for MixIns in VB.Net and I'm trying to implement DynamicObject with MixIns that refer to MixIns.

I've followed the instructions on CodeProject and implemented the IMixinAware interface, but when I run the code I get an error message: "Method 'set_Hello' not found on type 'System.Object".

Is there any way I can get the small VB.Net project to you to have a squiz at. It's got 2 classes, 2 interfaces (including IMixinAware), and once class inheriting from the other.

I 'MixWith' instances of both classes, and both classes have a property called "Hello" with a 'Set' and 'Get'.

That's what I don't understand, I've created the Set/Get statements on both properties, and I still get the error message.

In essence, I would like to manipulate a base class instance from an instance of its child class mixed with an instance of the base class. That way, I don't have to clone the base class to get access to its members/properties and methods.

Kind regards Victor

philiplaureano commented 9 years ago

Sure. Send me the sample code and I'll take a look at it. On Feb 7, 2015 10:40 PM, "VictorJames" notifications@github.com wrote:

Hi Philip,

Long time no speak. I've got a realword use for MixIns in VB.Net and I'm trying to implement DynamicObject with MixIns that refer to MixIns.

I've followed the instructions on CodeProject and implemented the IMixinAware interface, but when I run the code I get an error message: "Method 'set_Hello' not found on type 'System.Object".

Is there any way I can get the small VB.Net project to you to have a squiz at. It's got 2 classes, 2 interfaces (including IMixinAware), and once class inheriting from the other.

I 'MixWith' instances of both classes, and both classes have a property called "Hello" with a 'Set' and 'Get'.

That's what I don't understand, I've created the Set/Get statements on both properties, and I still get the error message.

In essence, I would like to manipulate a base class instance from an instance of its child class mixed with an instance of the base class. That way, I don't have to clone the base class to get access to its members/properties and methods.

Kind regards Victor

— Reply to this email directly or view it on GitHub https://github.com/philiplaureano/LinFu/issues/27.