What does Convert.ToSingle do?

I tried to search on Google and Bing this but both return zero results....

What does it mean when you put a hyphen in front of convert?

-Convert.ToSingle
Jon Skeet
people
quotationmark

It's just the - operator, applied to the result of calling Convert.ToSingle(...).

So for example when used as a unary operator:

double x = 10.52123;
float y = -Convert.ToSingle(x);

is equivalent to:

double x = 10.52123;
float tmp = Convert.ToSingle(x);
float y = -tmp;

Or when used as a binary operator:

double x = 10.52123;
float y = 10-Convert.ToSingle(x);

is equivalent to:

double x = 10.52123;
float tmp = Convert.ToSingle(x);
float y = 10 - tmp;

people

See more on this question at Stackoverflow