EDIT: I\'ve posted a better implementation of this, below. I left this here so the responses would make sense.
I\'ve done numerous searches for the
In Delphi 2009 the code works better if you explicitly type variable s as an AnsiString viz:
var s : Ansistring;
giving the expected result from C# following the call:
outputInt = 2, outputString = "This is a test 2"
instead of
outputInt = 2, outputString = "T"