Hi, Cecil doesn't provide a builtin mechanism for that, as the metadata doesn't make a strong link between the two methods.
You can take code or get inspired by: https://github.com/mono/mono/blob/master/mcs/tools/linker/Mono.Linker.Steps/TypeMapStep.cs Jb On Thu, Jul 10, 2014 at 12:35 AM, Andrei F <[email protected]> wrote: > For instance, I have a code like this: > >> public class Class1<T> >> { >> public virtual void Method2(T val) >> { >> } >> } >> >> public class Class2 : Class1<object> >> { >> public override void Method2(object val) >> { >> } >> } > > How can I check, that Class2.Method2 is an override of Class1.Method2 ? > > -- > -- > -- > 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. -- -- -- 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.
