public virtual int fooB(Prog[] arg) { JObjectArray array = new JObjectArray (arg, Prog.JClass); return _fooB.CallInt (this, array); }
public virtual Prog[] fooA() { JObject o = _fooA.CallObject (this); JObjectArray array = new JObjectArray (o); JObject[] oArray = (JObject[]) array.Elements; int l = array.Length; Prog[] r = new Prog[l]; for (int i = 0; i < l; i++) { r[i] = new Prog (oArray[i]); } return r; }