- mono_class_setup_methods (klass);
- for (i = 0; i < klass->method.count; ++i) {
- if ((missing & TYPE_METHODS) || strcmp (klass->methods [i]->name, ".cctor") == 0)
- add_types_from_method (klass->methods [i]);
+ iter = NULL;
+ while ((method = mono_class_get_methods (klass, &iter))) {
+ if ((missing & TYPE_METHODS) || strcmp (method->name, ".cctor") == 0)
+ add_types_from_method (method);