public override HeronValue Apply(VM vm, HeronValue[] args) { Object[] os = HeronDotNet.ObjectsToDotNetArray(args); Object o = self.GetSystemType().InvokeMember(name, BindingFlags.Public | BindingFlags.Instance | BindingFlags.InvokeMethod, null, self.Unmarshal(), os); return(DotNetObject.Marshal(o)); }
public override void SetValue(HeronValue self, HeronValue x) { fi.SetValue(self, DotNetObject.Unmarshal(fi.FieldType, x)); }