Make generic covariant

This commit is contained in:
Dean Herbert 2019-06-19 01:57:38 +09:00
parent 341dc74834
commit 1bcff8a3e2

View File

@ -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;