mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Add the ability to call ToString
on a RealmLive
to get the underlying object's implementation
This commit is contained in:
parent
5db7cf23d3
commit
cd0c811ab1
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user