Skip to content

Commit

Permalink
Add IEnumerator`1 to MonoDefaults struct
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdageek authored and marek-safar committed Mar 8, 2018
1 parent 84027bd commit 6f90188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions mono/metadata/class-internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,7 @@ typedef struct {
MonoClass *customattribute_data_class;
MonoClass *critical_finalizer_object; /* MAYBE NULL */
MonoClass *generic_ireadonlylist_class;
MonoClass *generic_ienumerator_class;
MonoClass *threadpool_wait_callback_class;
MonoMethod *threadpool_perform_wait_callback_method;
MonoClass *console_class;
Expand Down
2 changes: 2 additions & 0 deletions mono/metadata/domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,8 @@ mono_init_internal (const char *filename, const char *exe_filename, const char *
mono_defaults.corlib, "System.Collections.Generic", "IList`1");
mono_defaults.generic_ireadonlylist_class = mono_class_load_from_name (
mono_defaults.corlib, "System.Collections.Generic", "IReadOnlyList`1");
mono_defaults.generic_ienumerator_class = mono_class_load_from_name (
mono_defaults.corlib, "System.Collections.Generic", "IEnumerator`1");

mono_defaults.threadpool_wait_callback_class = mono_class_load_from_name (
mono_defaults.corlib, "System.Threading", "_ThreadPoolWaitCallback");
Expand Down

0 comments on commit 6f90188

Please sign in to comment.