Hi, On Mon, Oct 25, 2010 at 10:08 AM, Johannes Rudolph <[email protected]> wrote: > The runtime must > have some kind of special handling here, and I feel Cecil should do the same > but I am open to other suggestions.
Some methods on arrays (not only MD arrays) are generated at runtime, and are not present in the metadata. Cecil can't return a MethodDefinition not present in the metadata, especially as it's not possible to have it modeled. Just special case the case where method.Resolve () returns null and method.DeclaringType.IsArray. -- Jb EvainĀ <[email protected]> -- -- mono-cecil
