是否有现成的方法将 C# 运算符名称重命名为符号

Is there ready to use method to rename C# operator names to symbols

C# 将所有运算符定义为静态方法。这也是他们在反思中得到的名字。出于显示目的,我正在寻找一种重命名方法,将所有这些字符串转换为它们的 C# 代码表示形式,如 +、-、*、/、>>、<<、... 等等。

编辑:当然很容易编写代码。但我正在寻找官方的 .NET 方法或其他解决方案。

op_Implicit
op_explicit
op_Addition
op_Subtraction
op_Multiply
op_Division
op_Modulus
op_ExclusiveOr
op_BitwiseAnd
op_BitwiseOr
op_LogicalAnd
op_LogicalOr
op_Assign
op_LeftShift
op_RightShift
op_SignedRightShift
op_UnsignedRightShift
op_Equality
op_GreaterThan
op_LessThan
op_Inequality
op_GreaterThanOrEqual
op_LessThanOrEqual
op_MultiplicationAssignment
op_SubtractionAssignment
op_ExclusiveOrAssignment
op_LeftShiftAssignment
op_ModulusAssignment
op_AdditionAssignment
op_BitwiseAndAssignment
op_BitwiseOrAssignment
op_Comma
op_DivisionAssignment
op_Decrement
op_Increment
op_UnaryNegation
op_UnaryPlus
op_OnesComplement

毕竟只有38件(reference for all symbols)

var map = new Dictionary<string,string>{
{"op_Implicit",""},
{"op_explicit",""},
{"op_Addition","+"},
{"op_Subtraction","-"},
{"op_Multiply","*"},
{"op_Division","/"},
{"op_Modulus","%"},
{"op_ExclusiveOr","^"},
{"op_BitwiseAnd","&"},
{"op_BitwiseOr","|"},
{"op_LogicalAnd","&&"},
{"op_LogicalOr","||"},
{"op_Assign","="},
{"op_LeftShift","<<"},
{"op_RightShift",">>"},
{"op_SignedRightShift",""},
{"op_UnsignedRightShift",""},
{"op_Equality","=="},
{"op_GreaterThan",">"},
{"op_LessThan","<"},
{"op_Inequality","!="},
{"op_GreaterThanOrEqual",">="},
{"op_LessThanOrEqual","<="},
{"op_MultiplicationAssignment","*="},
{"op_SubtractionAssignment","-="},
{"op_ExclusiveOrAssignment","^="},
{"op_LeftShiftAssignment","<<="},
{"op_ModulusAssignment","%="},
{"op_AdditionAssignment","+="},
{"op_BitwiseAndAssignment","&="},
{"op_BitwiseOrAssignment","|="},
{"op_Comma",","},
{"op_DivisionAssignment","/="},
{"op_Decrement","--"},
{"op_Increment","++"},
{"op_UnaryNegation","-"},
{"op_UnaryPlus","+"},
{"op_OnesComplement","~"}
};