如何处理编译器生成的代码

时间:2014-08-05 17:00:04

标签: c# .net visual-studio .net-assembly disassembly

我尝试使用Visual Studio编辑程序集,但是我将其反汇编并作为VS项目打开,我得到了意外的大量错误,分析这些我认为大多数错误都是由"缺少字段"在类中,看起来应该由编译器生成的所有内容都是"缺少"以下示例应该更好地表达我想说的话

[CompilerGenerated]
private static Dictionary<string, int> <>f__switch$mapA;
[CompilerGenerated]
private static Dictionary<string, int> <>f__switch$mapB;
[CompilerGenerated]
private static Dictionary<string, int> <>f__switch$mapC;
[CompilerGenerated]
private static Dictionary<string, int> <>f__switch$mapD;
[CompilerGenerated]
private static Dictionary<string, int> <>f__switch$mapE;
[CompilerGenerated]
private static Dictionary<string, int> <>f__switch$mapF;
private ApplyTween apply;
private AudioSource audioSource;
private static GameObject cameraFade;
private Color[,] colors;
public float delay;

那些没有标签&#34; [CompilerGenerated]&#34;在解决方案浏览器中显示为相同的结构,但具有此标记的结构并不存在,并且这些行导致大多数错误。它是否正在发生,因为拆卸出错或者其他原因应该归咎于什么?任何帮助都表示赞赏(但是我处理了超过4000个错误,因此很难一个一个地手动纠正它们。)

0 个答案:

没有答案