Kostya,
I've never used Delphi, but it looks like you would use:
string test(string param)
{
return null;
}
There is a "return null" in there because you need to return something.
Also, I don't know what the default is for passing parameters in Delphi (is
param passed by value, or by reference?), but the C# code is passing the
string reference by value.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Kostya Ergin" <ko****@erginsoft.com> wrote in message
news:OA*************@tk2msftngp13.phx.gbl...
hi, i am very new in C#.
How to do this in C#:
This is function:
function test(param: string): string;
begin
end;
I can get result of "test" function:
result := test(param);
And how to do in C# ?