1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 05:27:23 +08:00

Add the ability to call ToString on a RealmLive to get the underlying object's implementation

This commit is contained in:
Dean Herbert 2021-11-29 18:00:03 +09:00
parent 5db7cf23d3
commit cd0c811ab1

View File

@ -123,5 +123,7 @@ namespace osu.Game.Database
=> (fetchedContext != null && SynchronizationContext.Current == fetchedContext) || fetchedThreadId == Thread.CurrentThread.ManagedThreadId;
public bool Equals(ILive<T>? other) => ID == other?.ID;
public override string ToString() => PerformRead(i => i.ToString());
}
}