Re: compiler error: cannot convert type void to string
On Oct 8, 11:22 am, "Jon Skeet [C# MVP]" <sk...@pobox.co mwrote:
On Oct 8, 4:20 pm, puzzlecracker <ironsel2...@gm ail.comwrote:
>
I call method Foo(string s);
>
with Foo("foo"+"bar" );
>
what's the deal here?
>
My guess is that you're doing something like:
>
string x = Foo("foo" + "bar");
>
If not, please show a short but complete program which demonstrates
the problem.
>
Jon
I just call a method, with concatenation of two strings,that takes
string parameter. That's all.
BTW what is wrong with string x = Foo("foo" + "bar"); ?
Re: compiler error: cannot convert type void to string
On Oct 8, 8:43 am, puzzlecracker <ironsel2...@gm ail.comwrote:
On Oct 8, 11:22 am, "Jon Skeet [C# MVP]" <sk...@pobox.co mwrote:
>
>
>
On Oct 8, 4:20 pm, puzzlecracker <ironsel2...@gm ail.comwrote:
>
I call method Foo(string s);
>
with Foo("foo"+"bar" );
>
what's the deal here?
>
My guess is that you're doing something like:
>
string x = Foo("foo" + "bar");
>
If not, please show a short but complete program which demonstrates
the problem.
>
Jon
>
I just call a method, with concatenation of two strings,that takes
string parameter. That's all.
>
BTW what is wrong with string x = Foo("foo" + "bar"); ?
can you please post the signature of method please?
Comment