C# - what does the unary ^ do?
问题 I have checked out some code and I got an error ('invalid expression term "^"' to be exact) in the line // choices is a regular array return choices[^1]; I have never seen a unary caret operator (I am only aware of the XOR operator, but that one obviously takes two operands). Does this operator exist and if so, what does it do? Note: The site https://www.tutorialsteacher.com/csharp/csharp-operators mentions a unary caret operator in the precedence table but it does not explain what it does.