Hi Jb, OK. And how, can I determine if the method in the Overrides collection is an *interface method* without resolving the declaring type reference?
KR, Ulrich Am Freitag, 30. Mai 2014 09:34:55 UTC+2 schrieb Jb Evain: > > Hi Ulrich, > > This one is actually easy :) > > You'll see all the interface methods the method explicitly implements > in the .Overrides collection of the method. > > Jb > > On Fri, May 30, 2014 at 9:22 AM, Ulrich <[email protected] <javascript:>> > wrote: > > ... without resolving a type reference. > > > > bool IsExplicitInterfaceImplementation(MethodDefinition method) > > { > > //return method.IsPrivate && method.IsFinal && method.IsVirtual; > > //return method.HasOverrides; > > //return method.Name.Contains("."); > > } > > > > All these variants are heuristics and work for the current C# compiler, > but > > may not work for other ones. > > Which is the best one? Should I use a combination of heuristics? Any > > alternative ideas? > > > > -- > > -- > > -- > > 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. > -- -- -- 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.
