The return value of the function

Does the mechanism of the return of function in the C# programming language the same as the C progrmming language.
I puzzled in the following piece of program
private string writexml(...)
{ XXX=new;
return XXX.tostring();
I got an error message which inform me that it isn't that every function have can return value.
Could anyone help me?
Could anyone tell me the diference between the function mechanism of the C and C#.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!