This is really easy. There’s lots of threads on this. Essentially the code is just:
string functionLibrary = "TestLib";
string function = "TestFunc";
var result = (Tuple<System.Boolean, System.String>)this.InvokeFunction(functionLibrary,function,Tuple.Create(this.ds));
outputBool = result.Item1;
outputStr = result.Item2;