mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:07:38 +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