我知道这是一个奇怪的问题,但这里有一段代码可以更好地解释我想要做什么。
char plus = '+'; //Creating a variable assigning it to the + value.
//Instead of using + we use the variable plus and expect the same outcome.
Console.WriteLine(1 + plus + 1);
Console.ReadLine(); //Read the line.
Run Code Online (Sandbox Code Playgroud)
但由于某种原因,控制台读出了 45...很奇怪吧?那么,如果您明白我想要做什么,您能解释一下并告诉我如何做吗?