Use Array.Empty

This commit is contained in:
2022-03-16 23:43:36 +00:00
parent ff65da6c48
commit d686e59cb7
41 changed files with 87 additions and 173 deletions

View File

@@ -71,11 +71,9 @@ public sealed partial class Vhd
/// <inheritdoc />
public CICMMetadataType CicmMetadata => null;
/// <inheritdoc />
public IEnumerable<MediaTagType> SupportedMediaTags => new MediaTagType[]
{};
public IEnumerable<MediaTagType> SupportedMediaTags => Array.Empty<MediaTagType>();
/// <inheritdoc />
public IEnumerable<SectorTagType> SupportedSectorTags => new SectorTagType[]
{};
public IEnumerable<SectorTagType> SupportedSectorTags => Array.Empty<SectorTagType>();
/// <inheritdoc />
public IEnumerable<MediaType> SupportedMediaTypes => new[]
{
@@ -87,8 +85,7 @@ public sealed partial class Vhd
// TODO: Support dynamic images
/// <inheritdoc />
public IEnumerable<(string name, Type type, string description, object @default)> SupportedOptions =>
new (string name, Type type, string description, object @default)[]
{};
Array.Empty<(string name, Type type, string description, object @default)>();
/// <inheritdoc />
public IEnumerable<string> KnownExtensions => new[]
{