mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09: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;
|
=> (fetchedContext != null && SynchronizationContext.Current == fetchedContext) || fetchedThreadId == Thread.CurrentThread.ManagedThreadId;
|
||||||
|
|
||||||
public bool Equals(ILive<T>? other) => ID == other?.ID;
|
public bool Equals(ILive<T>? other) => ID == other?.ID;
|
||||||
|
|
||||||
|
public override string ToString() => PerformRead(i => i.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user