@@ -282,22 +282,25 @@ public override ContentTypeDescriptorCollection GetContentTypeDescriptors() {
282282 \---------------------------------------------------------------------------------------------------------------------*/
283283 var configuration = Load ( "Configuration" ) ;
284284
285- /*--------------------------------------------------------------------------------------------------------------------
285+ /*----------------------------------------------------------------------------------------------------------------------
286286 | Add available Content Types to the collection
287- \-------------------------------------------------------------------------------------------------------------------*/
287+ \--------------------------------------------------------------------------------------------------------------------- */
288288 _contentTypeDescriptors = new ContentTypeDescriptorCollection ( ) ;
289289
290- /*--------------------------------------------------------------------------------------------------------------------
290+ /*----------------------------------------------------------------------------------------------------------------------
291291 | Ensure the parent ContentTypes topic is available to iterate over
292- \-------------------------------------------------------------------------------------------------------------------*/
292+ \--------------------------------------------------------------------------------------------------------------------- */
293293 if ( configuration . Children . GetTopic ( "ContentTypes" ) == null ) {
294294 throw new Exception ( "Unable to load section Configuration:ContentTypes." ) ;
295295 }
296296
297- /*--------------------------------------------------------------------------------------------------------------------
297+ /*----------------------------------------------------------------------------------------------------------------------
298298 | Add available Content Types to the collection
299- \-------------------------------------------------------------------------------------------------------------------*/
300- foreach ( var topic in configuration . Children . GetTopic ( "ContentTypes" ) . FindAllByAttribute ( "ContentType" , "ContentType" ) ) {
299+ \---------------------------------------------------------------------------------------------------------------------*/
300+ foreach (
301+ var topic in
302+ configuration . Children . GetTopic ( "ContentTypes" ) . FindAllByAttribute ( "ContentType" , nameof ( ContentTypeDescriptor ) )
303+ ) {
301304 // Ensure the Topic is used as the strongly-typed ContentType
302305 // Add ContentType Topic to collection if not already added
303306 if (
0 commit comments