Hi, thanks for the hint. In the meanwhile I stumbled over a post talking about looking at the IL code of the constructor and then I figured that this is propably the way to do it.
Thank you! Regards, /Walter Am Freitag, 8. Februar 2019 17:49:15 UTC+1 schrieb Greg Young: > > Look in the constructor where this would be set... *note however* that > something else could be setting it elsewhere to some other IFooInterface ... > > On Fri, Feb 8, 2019 at 11:22 AM 'Walter Stocker' via mono-cecil < > [email protected] <javascript:>> wrote: > >> Hi, >> >> unfortunately I was unable to find an answer in the group or with a >> google search. Therefore, I am posting here and hope that somebody can >> answer my question. >> >> I have the following code that I would like to analyze with Cecil: >> >> public class FooClass { >> >> >> private IFooInterface myField = new FooInterfaceImplementor(); >> >> >> >> Is there a way to determine the type FooInterfaceImplementor with Cecil? >> I am only able to get IFooInterface as the type of the field. >> >> Regards, >> >> /Walter >> >> -- >> -- >> -- >> mono-cecil >> --- >> You received this message because you are subscribed to the Google Groups >> "mono-cecil" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Studying for the Turing test > -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
