Hi Everyone,<div><br></div><div>I&#39;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&lt;T&gt;(string name, ref T localmember, T value)</div><div> {</div><div>         ......</div><div> }</div><div><br></div><div>I can&#39;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&#39;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&#39;: Expression of type &#39;IronRuby.Builtins.Muta</i></div>
<div><i>bleString&amp;&#39; cannot be used for parameter of type &#39;IronRuby.Builtins.MutableStrin</i></div><div><i>g&#39; of method &#39;Void #base#OnNotifyPropertyChanged[MutableString](System.String, I</i></div><div>
<i>ronRuby.Builtins.MutableString ByRef, IronRuby.Builtins.MutableString)&#39; (Argumen</i></div><div><i>tError)</i></div><div><i>        from Microsoft.Scripting.Core:0:in `BindCore&#39;</i></div><div><i>        from ./dynamic_event_item.rb:22:in `method_missing&#39;</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>