J
Jesper, Denmark
double c = double.NaN;
Console.WriteLine(c = 10);
Console.WriteLine(c += 5);
Console.WriteLine(c);
output:
10
15
15
Question: Has it always been possible to do these assingments and
operations, and how can such an operations return a value?? I like it, but
thought that this kind of operations were nice candy back from my c++ days
and not allowed in c#.
regards Jesper.
Console.WriteLine(c = 10);
Console.WriteLine(c += 5);
Console.WriteLine(c);
output:
10
15
15
Question: Has it always been possible to do these assingments and
operations, and how can such an operations return a value?? I like it, but
thought that this kind of operations were nice candy back from my c++ days
and not allowed in c#.
regards Jesper.