如题,可能这个是C#2003的代码吧。在C#2005中就是错的,有高手能解释一下么?特别是类名前的<GetEnumerator>,和变量定义private int <>1__state。        [CompilerGenerated]
        private sealed class <GetEnumerator>d__0 : IEnumerator<ConversationParticipant>, IEnumerator, IDisposable
        {
            private int <>1__state;
            private ConversationParticipant <>2__current;
            public ParticipantCollection <>4__this;
            public int <counter>5__1;
            //....................
        }

解决方案 »

  1.   

    只贴了这些看不出来问题
    private sealed class <GetEnumerator>d__0 : IEnumerator<object>, IEnumerator, IDisposable
    {
        
        private int <>1__state;
        private object <>2__current;
        public MyCollection <>4__this;
        public string <s>5__1;
    }
      

  2.   

    我还不懂泛型的如果说泛型的话,为什么Visual Studio会报语法错误呢?
      

  3.   

    ls一群人啊.............
    还泛型呢,硕大的[CompilerGenerated]没看到,编译器生成的代码而已罢了,偶服了-_____,-
      

  4.   

    用该类的GetType().IsSpecialName属性可以查看
      

  5.   

    摆明的反编译代码……看起来是yeild表达式自动生成的匿名类,.NET Framework 2.0以上。
    结论:
    1、本人从不解答任何关于反向工程的问题,因为我没有能力判断其用意是善意还是恶意。