diff --git a/Lombiq.HelpfulExtensions/Extensions/ContentSets/Drivers/ContentSetContentPickerFieldDisplayDriver.cs b/Lombiq.HelpfulExtensions/Extensions/ContentSets/Drivers/ContentSetContentPickerFieldDisplayDriver.cs index 19a6a7b8..dfe278f0 100644 --- a/Lombiq.HelpfulExtensions/Extensions/ContentSets/Drivers/ContentSetContentPickerFieldDisplayDriver.cs +++ b/Lombiq.HelpfulExtensions/Extensions/ContentSets/Drivers/ContentSetContentPickerFieldDisplayDriver.cs @@ -4,7 +4,6 @@ using Lombiq.HelpfulExtensions.Extensions.ContentSets.ViewModels; using Lombiq.HelpfulLibraries.OrchardCore.Contents; using Microsoft.Extensions.Localization; -using Newtonsoft.Json.Linq; using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Display.ContentDisplay; using OrchardCore.ContentManagement.Display.Models; @@ -52,7 +51,7 @@ await model.InitializeAsync( new ContentTypePartDefinition( name, await _contentDefinitionManager.GetPartDefinitionAsync(nameof(ContentSetPart)), - new JObject()), + []), isNew: false); }) .Location(CommonContentDisplayTypes.Detail, CommonLocationNames.Content) diff --git a/Lombiq.HelpfulExtensions/Extensions/OrchardRecipeMigration/Services/OrchardExportToRecipeConverter.cs b/Lombiq.HelpfulExtensions/Extensions/OrchardRecipeMigration/Services/OrchardExportToRecipeConverter.cs index d414e453..4b75fe4e 100644 --- a/Lombiq.HelpfulExtensions/Extensions/OrchardRecipeMigration/Services/OrchardExportToRecipeConverter.cs +++ b/Lombiq.HelpfulExtensions/Extensions/OrchardRecipeMigration/Services/OrchardExportToRecipeConverter.cs @@ -20,7 +20,7 @@ public class OrchardExportToRecipeConverter : IOrchardExportToRecipeConverter private readonly IEnumerable _contentConverters; private readonly IEnumerable _userConverters; - private readonly ICollection _contentTypes; + private readonly List _contentTypes; public OrchardExportToRecipeConverter( IContentDefinitionManager contentDefinitionManager, diff --git a/Lombiq.HelpfulExtensions/Extensions/ShapeTracing/ShapeTracingShapeEvents.cs b/Lombiq.HelpfulExtensions/Extensions/ShapeTracing/ShapeTracingShapeEvents.cs index bb4271b9..c9fae732 100644 --- a/Lombiq.HelpfulExtensions/Extensions/ShapeTracing/ShapeTracingShapeEvents.cs +++ b/Lombiq.HelpfulExtensions/Extensions/ShapeTracing/ShapeTracingShapeEvents.cs @@ -37,7 +37,7 @@ void AddIfNotNullOrEmpty(string name, string value) } } - if (shapeMetadata.Alternates.Any()) + if (shapeMetadata.Alternates.Count != 0) { builder.AppendHtml("Alternates: "); builder.AppendHtmlLine(string.Join(", ", shapeMetadata.Alternates)); @@ -49,7 +49,7 @@ void AddIfNotNullOrEmpty(string name, string value) builder.AppendHtmlLine(string.Join(", ", shapeMetadata.BindingSources)); } - if (shapeMetadata.Wrappers.Any()) + if (shapeMetadata.Wrappers.Count != 0) { builder.AppendHtml("Wrappers: "); builder.AppendHtmlLine(string.Join(", ", shapeMetadata.Wrappers));