mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Make generic covariant
This commit is contained in:
parent
341dc74834
commit
1bcff8a3e2
@ -9,7 +9,7 @@ namespace osu.Game.Database
|
|||||||
/// Represents a model manager that publishes events when <see cref="TModel"/>s are added or removed.
|
/// Represents a model manager that publishes events when <see cref="TModel"/>s are added or removed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TModel">The model type.</typeparam>
|
/// <typeparam name="TModel">The model type.</typeparam>
|
||||||
public interface IModelManager<TModel>
|
public interface IModelManager<out TModel>
|
||||||
where TModel : class
|
where TModel : class
|
||||||
{
|
{
|
||||||
event Action<TModel, bool> ItemAdded;
|
event Action<TModel, bool> ItemAdded;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user