diff --git a/16/umbraco-cms/extending/creating-custom-seed-key-provider.md b/16/umbraco-cms/extending/creating-custom-seed-key-provider.md index 64fbd4ea869..3ce53918471 100644 --- a/16/umbraco-cms/extending/creating-custom-seed-key-provider.md +++ b/16/umbraco-cms/extending/creating-custom-seed-key-provider.md @@ -31,7 +31,7 @@ public class BlogSeedKeyProvider : IDocumentSeedKeyProvider } ``` -Next we'll inject the `IDocumentNavigationQueryService` in order to get the children of the blog node. +2. Inject the `IDocumentNavigationQueryService` to get the children of the blog node. ```csharp using Umbraco.Cms.Core.Services.Navigation; @@ -66,6 +66,7 @@ public ISet GetSeedKeys() return new HashSet(); } ``` + Since this returns it as a set, and all the sets get unioned, we do not have to worry about duplicates. The final class looks like this: diff --git a/16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/radiobutton-list.md b/16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/radiobutton-list.md index 846d20b90d7..21d866cc414 100644 --- a/16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/radiobutton-list.md +++ b/16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/radiobutton-list.md @@ -26,6 +26,8 @@ You can use dictionary items to translate the values of a Radiobutton List prope #### Without Models Builder +{% code caption="HomePageTemplate.cs" %} + ```csharp @if (Model.HasValue("colorTheme")) { @@ -34,6 +36,8 @@ You can use dictionary items to translate the values of a Radiobutton List prope } ``` +{% endcode %} + #### With Models Builder ```csharp diff --git a/16/umbraco-cms/reference/using-ioc.md b/16/umbraco-cms/reference/using-ioc.md index c7b08b48384..7cf6e2c8861 100644 --- a/16/umbraco-cms/reference/using-ioc.md +++ b/16/umbraco-cms/reference/using-ioc.md @@ -225,7 +225,7 @@ If you need to inject your service into a controller or another service, you wil {% code title="FooController.cs" %} -```csharp +```none using IOCDocs.Services; using Microsoft.AspNetCore.Mvc;