How can we help you today? How can we help you today?
lukit
Hi It looks like I have (almost) the same problem, but I can't solve it. Reflector version: 6.5.0.135. The workaround is to set up a .NET 3.5 assembly list, using say, File/Open List, Add, Framework35, double-click framework 35, select the 3.5 framework. Opening the assembly within this group of pre-loaded assemblies should give you the behaviour you are looking for. Done. Original code: using System; using System.Collections; namespace Crh.GbSheets { public class GbsElems : IEnumerable { private ArrayList items; public GbsElems() { items = new ArrayList(); } public IEnumerator GetEnumerator() { return items.GetEnumerator(); } public IEnumerable Reverse { get { for (int i = items.Count - 1; i >= 0; i--) yield return items[i]; } } } } Reflectored code: public IEnumerable Reverse { get { return new <get_Reverse>d__0(-2) { <>4__this = this }; } } // Nested Types [CompilerGenerated] private sealed class <get_Reverse>d__0 : IEnumerable<object>, IEnumerable, IEnumerator<object>, IEnumerator, IDisposable { ... Optimization in option is set to .NET 3.5, but using 2.0 is (almost) the same. My main problem is the reflectored code does not compile. Is it possible to get something compileable? Thank you very much, Gyula / comments
Hi It looks like I have (almost) the same problem, but I can't solve it. Reflector version: 6.5.0.135. The workaround is to set up a .NET 3.5 assembly list, using say, File/Open List, Add, Framewo...
0 votes