From b8e55eb92b92d7a437cf279839902b4bf7eb415a Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Wed, 2 Aug 2023 07:50:02 +0200 Subject: [PATCH] Make enumerator public again --- Realm/Realm/DatabaseTypes/RealmCollectionBase.cs | 3 ++- .../Realms.SourceGenerator.RealmGenerator/A_generated.cs | 1 + .../Realms.SourceGenerator.RealmGenerator/B_generated.cs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Realm/Realm/DatabaseTypes/RealmCollectionBase.cs b/Realm/Realm/DatabaseTypes/RealmCollectionBase.cs index eaf6b954b5..30755fb319 100644 --- a/Realm/Realm/DatabaseTypes/RealmCollectionBase.cs +++ b/Realm/Realm/DatabaseTypes/RealmCollectionBase.cs @@ -526,7 +526,8 @@ public void CopyTo(Array array, int index) #endregion IList - private class Enumerator : IEnumerator + // ReSharper disable once MemberCanBePrivate.Global - this needs to be public for the dynamic API + public class Enumerator : IEnumerator { private readonly RealmCollectionBase _enumerating; private readonly bool _shouldDisposeHandle; diff --git a/Tests/Realm.Tests/Generated/Realm.SourceGenerator/Realms.SourceGenerator.RealmGenerator/A_generated.cs b/Tests/Realm.Tests/Generated/Realm.SourceGenerator/Realms.SourceGenerator.RealmGenerator/A_generated.cs index 6e00c6999f..2c6af73908 100644 --- a/Tests/Realm.Tests/Generated/Realm.SourceGenerator/Realms.SourceGenerator.RealmGenerator/A_generated.cs +++ b/Tests/Realm.Tests/Generated/Realm.SourceGenerator/Realms.SourceGenerator.RealmGenerator/A_generated.cs @@ -11,6 +11,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using System.Globalization; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; diff --git a/Tests/Realm.Tests/Generated/Realm.SourceGenerator/Realms.SourceGenerator.RealmGenerator/B_generated.cs b/Tests/Realm.Tests/Generated/Realm.SourceGenerator/Realms.SourceGenerator.RealmGenerator/B_generated.cs index 7a6ca1c34b..e43ab9ce1f 100644 --- a/Tests/Realm.Tests/Generated/Realm.SourceGenerator/Realms.SourceGenerator.RealmGenerator/B_generated.cs +++ b/Tests/Realm.Tests/Generated/Realm.SourceGenerator/Realms.SourceGenerator.RealmGenerator/B_generated.cs @@ -11,6 +11,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using System.Globalization; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices;