More work on nullable references

This commit is contained in:
Nikolaj Geisle
2022-02-22 13:35:32 +01:00
parent 315e8d6fe6
commit a8cf6ee127
189 changed files with 1271 additions and 983 deletions

View File

@@ -4,6 +4,6 @@ namespace Umbraco.Cms.Core.Notifications
{
public interface IStatefulNotification : INotification
{
IDictionary<string, object>? State { get; set; }
IDictionary<string, object> State { get; set; }
}
}

View File

@@ -12,7 +12,7 @@ namespace Umbraco.Cms.Core.Notifications
/// This can be used by event subscribers to store state in the notification so they easily deal with custom state data between
/// a starting ("ing") and an ending ("ed") notification
/// </summary>
public IDictionary<string, object>? State
public IDictionary<string, object> State
{
get => _state ??= new Dictionary<string, object>();
set => _state = value;