编译代码 - 错误 CS1056 '`'

Compiling Code - error CS1056 '`'

我正在尝试使用我自己的编译器 (CodeDOM) 编译代码,但是在这样的代码上:

390.   sealed class FunctorComparer`1 {
421.   public System.Array+FunctorComparer`1[T] () {}
448.   abstract public interface IEnumerator`1 {
... (1676 matches) ...

我收到这个错误:

c:\Users\[Username]\AppData\Local\Temp[=11=]z4zag32.0.cs(390,29) : error CS1056: Unexpected character '`'

我错过了什么?


[EDIT (1, "16:25", "4 May")]
the code i m trying to compile is not written by me. I don't know what that
character stands for, learning it. But i found that on this site
http://submain.com/ghostdoc/samples/PowerCollections/HTML/html/75549028.htm
it is being used, and it is strange the CodeDOM doesnt parse it.

应该从代码中删除反引号。这就是错误代码所暗示的。

它们可能是由于您从中获取此代码示例的系统部分过度转义而添加的。

任何成员的名称(字段,属性,方法,class)不能包含字符

'`'

如果您正在阅读来自

的详细信息
System.Reflection

它会添加这个角色,我不确定是否需要,可能是因为它覆盖了虚拟成员 x 次。喜欢

System.Threading.Tasks.Task`1[System.Threading.Tasks.VoidTaskResult] //1 time
System.Threading.Tasks.Task`6[System.Threading.Tasks.VoidTaskResult] //6 times

只需要声明的第一部分就完成了,包含了计算机完成工作所需的所有信息。

from
System.Threading.Tasks.Task`1[System.Threading.Tasks.VoidTaskResult]

to
System.Threading.Tasks.Task