internal static void EnsureInitialized() { if (initialized) { return; } if (GC.MaxGeneration <= 0) { throw ErrorHelper.CreateError(8017, "The Boehm garbage collector is not supported. Please use SGen instead."); } LookupInternalFunction <set_bool_func> ("xamarin_set_is_unified") (IsUnifiedBuild); LookupInternalFunction <initialize_func> ("xamarin_initialize") (); }
internal static void EnsureInitialized() { if (initialized) { return; } if (GC.MaxGeneration <= 0) { throw ErrorHelper.CreateError(8017, "The Boehm garbage collector is not supported. Please use SGen instead."); } VerifyMonoVersion(); LookupInternalFunction <initialize_func> ("xamarin_initialize") (); }