More work on nullable references
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Umbraco.Cms.Core.Models.Blocks
|
||||
{
|
||||
public struct ContentAndSettingsReference : IEquatable<ContentAndSettingsReference>
|
||||
{
|
||||
public ContentAndSettingsReference(Udi contentUdi, Udi settingsUdi)
|
||||
public ContentAndSettingsReference(Udi? contentUdi, Udi? settingsUdi)
|
||||
{
|
||||
ContentUdi = contentUdi ?? throw new ArgumentNullException(nameof(contentUdi));
|
||||
SettingsUdi = settingsUdi;
|
||||
@@ -13,7 +13,7 @@ namespace Umbraco.Cms.Core.Models.Blocks
|
||||
|
||||
public Udi ContentUdi { get; }
|
||||
|
||||
public Udi SettingsUdi { get; }
|
||||
public Udi? SettingsUdi { get; }
|
||||
|
||||
public override bool Equals(object? obj) => obj is ContentAndSettingsReference reference && Equals(reference);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user