Use nullability on the rest of core

This commit is contained in:
Nikolaj Geisle
2022-02-16 16:03:53 +01:00
parent 093d336cc7
commit 6be2cd45db
224 changed files with 873 additions and 773 deletions

View File

@@ -21,6 +21,6 @@ namespace Umbraco.Cms.Core.Telemetry.Models
/// This may be an empty string if no version is specified, or if package telemetry has been restricted.
/// </remarks>
[DataMember(Name = "version")]
public string Version { get; set; }
public string? Version { get; set; }
}
}

View File

@@ -20,7 +20,7 @@ namespace Umbraco.Cms.Core.Telemetry.Models
/// Gets or sets the Umbraco CMS version.
/// </summary>
[DataMember(Name = "version")]
public string Version { get; set; }
public string? Version { get; set; }
/// <summary>
/// Gets or sets an enumerable containing information about packages.
@@ -29,6 +29,6 @@ namespace Umbraco.Cms.Core.Telemetry.Models
/// Contains only the name and version of the packages, unless no version is specified.
/// </remarks>
[DataMember(Name = "packages")]
public IEnumerable<PackageTelemetry> Packages { get; set; }
public IEnumerable<PackageTelemetry>? Packages { get; set; }
}
}