From cd0c811ab1fdb40cd745b1913f5e7e3f727b229f Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 29 Nov 2021 18:00:03 +0900 Subject: [PATCH] Add the ability to call `ToString` on a `RealmLive` to get the underlying object's implementation --- osu.Game/Database/RealmLive.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osu.Game/Database/RealmLive.cs b/osu.Game/Database/RealmLive.cs index 6d5410d1cd..6f17493097 100644 --- a/osu.Game/Database/RealmLive.cs +++ b/osu.Game/Database/RealmLive.cs @@ -123,5 +123,7 @@ namespace osu.Game.Database => (fetchedContext != null && SynchronizationContext.Current == fetchedContext) || fetchedThreadId == Thread.CurrentThread.ManagedThreadId; public bool Equals(ILive? other) => ID == other?.ID; + + public override string ToString() => PerformRead(i => i.ToString()); } }