Michael,
This is one of those things where any reference you care to hunt down
quotes the same exact definition, which tells me that no one has a
coherent explanation. It is probably an item of esoterica that's thrown
in for "completeness" from the perspective of the language designer, but
I can't think of a use for us mere mortals, except that tutorials feel
obligated to mention it because it's there ;-)
--Bob
Michael A. Covington wrote:
Other than to create confusion, does the unary plus operator serve any
purpose at all?
All C# numeric types have a unary plus. The syntax is something like:
x = +y;
where +y is the same value as y, whether positive or negative.