Hi Everyone,<div><br></div><div>I'm trying to write a IronRuby script that interops with a a .NET assembly written in C#. </div><div><br></div><div>It has a class that derives from a base class in the .NET assembly. One of the base class protected methods looks like this:</div>
<div><br></div><div><div>protected void OnNotifyPropertyChanged<T>(string name, ref T localmember, T value)</div><div> {</div><div> ......</div><div> }</div><div><br></div><div>I can't for the life of me figure out how to call this method from IR in my derived class.</div>
<div>The documentation mentions that you can call <b>out </b>parameters without using them as arguments, but I can't seem to find anything about <b>ref </b>params.</div><div><br></div><div>If I just try calling the method like this:</div>
<div><br></div><div>OnNotifyPropertyChanged(property_name, value, value)</div><div><br></div><div>I get this error:</div><div><br></div><div><div><i>Microsoft.Scripting.Core:0:in `Bind': Expression of type 'IronRuby.Builtins.Muta</i></div>
<div><i>bleString&' cannot be used for parameter of type 'IronRuby.Builtins.MutableStrin</i></div><div><i>g' of method 'Void #base#OnNotifyPropertyChanged[MutableString](System.String, I</i></div><div>
<i>ronRuby.Builtins.MutableString ByRef, IronRuby.Builtins.MutableString)' (Argumen</i></div><div><i>tError)</i></div><div><i> from Microsoft.Scripting.Core:0:in `BindCore'</i></div><div><i> from ./dynamic_event_item.rb:22:in `method_missing'</i></div>
<div><i> from :0</i></div><div><br></div><div><br></div><div>Am I missing something?</div><div><br></div><div>Thanks</div><div><br></div><div>Michael Erasmus</div><div><br></div></div></div>