Started using nullable reference types..

This commit is contained in:
Bjarke Berg
2021-12-16 13:44:20 +01:00
parent 11eaf176a9
commit 2ec92057c5
192 changed files with 752 additions and 723 deletions

View File

@@ -17,7 +17,7 @@ namespace Umbraco.Cms.Core.Cache
return performGet(id);
}
public TEntity GetCached(TId id)
public TEntity? GetCached(TId id)
{
return null;
}
@@ -42,7 +42,7 @@ namespace Umbraco.Cms.Core.Cache
persistDeleted(entity);
}
public TEntity[] GetAll(TId[] ids, Func<TId[], IEnumerable<TEntity>> performGetAll)
public TEntity?[] GetAll(TId[] ids, Func<TId[], IEnumerable<TEntity?>> performGetAll)
{
return performGetAll(ids).ToArray();
}