|
Re: out and ref keywords in C#
11/13/2009 4:43:38 PM
(Total replies: 0)
|
| 'ref': the argument must be initialized before calling the method - the method *may* pass back a changed value.
<br />
<br />
'out': the argument can be uninitialized when you call the method - the method *must* set the parameter to some value. |
|
|
|
|
|
|
Re: Covertin Vb code to C #
10/16/2009 9:15:08 PM
(Total replies: 1)
|
| Try a cast as the message says - either "Convert.ToString" or "(string)" or " as string".
<br />
|
|
|
|
Re: vb.net vrs c#
9/25/2009 9:27:26 PM
(Total replies: 0)
|
| Outside of the few differences that 'vulpes' indicated, there is very little difference in terms of functionality, speed, power, etc.
<br />
<br />
The main difference is style.
<br />
<br />
One other difference I can think of is that C# allows assignments within expressions - this is particularly useful for while loops to avoid two separate identical assignments.
<br />
e.g.,
<br />
while ((x = Foo()) > 0)
<br />
{
<br />
...
<br />
}
<br />
<br />
In VB, you'd need:
<br ... |
|