Hi, On Sat, Jul 16, 2011 at 12:03 PM, Usman Bhatti <[email protected]> wrote: > But that's gonna increase the complexity of my code. I was thinking of > looking into way how to create an extension of a TypeResolver that, when an > actual typeDefinition is absent, returns a custom created typedefinition > from the available information about a type. Is there any way to define > extensions in Cecil for this purpose and where should I start looking? Any > other ideas?
Although this is planned, this is not yet implemented. A current solution is for you to create an extension method on say TypeReference, like CustomResolve (this TypeReference) where you implement your fallback system. > P.S: Also, can this idea be generalized for all entities that are used in an > assembly but resolving them is not always possible? It will be generalized to everything Resolvable, yes. Jb -- -- mono-cecil
