Exemplo n.º 1
0
        public static MethodDefinition GetBaseMethod(TypeDefinition type, MethodDefinition method, IEmitter emitter)
        {
            TypeDefinition baseType = Helpers.GetBaseType(type, emitter);

            while (baseType != null)
            {
                MethodDefinition base_method = Helpers.TryMatchMethod(baseType, method);
                if (base_method != null)
                {
                    return(base_method);
                }

                baseType = Helpers.GetBaseType(baseType, emitter);
            }

            return(null);
        }