@@ -38,24 +38,24 @@ public DefaultTopicLookupService(IEnumerable<Type>? types = null, Type? defaultT
38
38
/*------------------------------------------------------------------------------------------------------------------------
39
39
| Ensure editor types are accounted for
40
40
\-----------------------------------------------------------------------------------------------------------------------*/
41
- if ( ! Contains ( nameof ( ContentTypeDescriptor ) ) ) Add ( typeof ( ContentTypeDescriptor ) ) ;
42
- if ( ! Contains ( nameof ( AttributeDescriptor ) ) ) Add ( typeof ( AttributeDescriptor ) ) ;
43
- if ( ! Contains ( nameof ( BooleanAttribute ) ) ) Add ( typeof ( BooleanAttribute ) ) ;
44
- if ( ! Contains ( nameof ( DateTimeAttribute ) ) ) Add ( typeof ( DateTimeAttribute ) ) ;
45
- if ( ! Contains ( nameof ( FileListAttribute ) ) ) Add ( typeof ( FileListAttribute ) ) ;
46
- if ( ! Contains ( nameof ( FilePathAttribute ) ) ) Add ( typeof ( FilePathAttribute ) ) ;
47
- if ( ! Contains ( nameof ( HtmlAttribute ) ) ) Add ( typeof ( HtmlAttribute ) ) ;
48
- if ( ! Contains ( nameof ( LastModifiedAttribute ) ) ) Add ( typeof ( LastModifiedAttribute ) ) ;
49
- if ( ! Contains ( nameof ( LastModifiedByAttribute ) ) ) Add ( typeof ( LastModifiedByAttribute ) ) ;
50
- if ( ! Contains ( nameof ( NestedTopicListAttribute ) ) ) Add ( typeof ( NestedTopicListAttribute ) ) ;
51
- if ( ! Contains ( nameof ( NumberAttribute ) ) ) Add ( typeof ( NumberAttribute ) ) ;
52
- if ( ! Contains ( nameof ( QueryableTopicListAttribute ) ) ) Add ( typeof ( QueryableTopicListAttribute ) ) ;
53
- if ( ! Contains ( nameof ( RelationshipAttribute ) ) ) Add ( typeof ( RelationshipAttribute ) ) ;
54
- if ( ! Contains ( nameof ( TextAreaAttribute ) ) ) Add ( typeof ( TextAreaAttribute ) ) ;
55
- if ( ! Contains ( nameof ( TextAttribute ) ) ) Add ( typeof ( TextAttribute ) ) ;
56
- if ( ! Contains ( nameof ( TokenizedTopicListAttribute ) ) ) Add ( typeof ( TokenizedTopicListAttribute ) ) ;
57
- if ( ! Contains ( nameof ( TopicListAttribute ) ) ) Add ( typeof ( TopicListAttribute ) ) ;
58
- if ( ! Contains ( nameof ( TopicReferenceAttribute ) ) ) Add ( typeof ( TopicReferenceAttribute ) ) ;
41
+ TryAdd ( typeof ( ContentTypeDescriptor ) ) ;
42
+ TryAdd ( typeof ( AttributeDescriptor ) ) ;
43
+ TryAdd ( typeof ( BooleanAttribute ) ) ;
44
+ TryAdd ( typeof ( DateTimeAttribute ) ) ;
45
+ TryAdd ( typeof ( FileListAttribute ) ) ;
46
+ TryAdd ( typeof ( FilePathAttribute ) ) ;
47
+ TryAdd ( typeof ( HtmlAttribute ) ) ;
48
+ TryAdd ( typeof ( LastModifiedAttribute ) ) ;
49
+ TryAdd ( typeof ( LastModifiedByAttribute ) ) ;
50
+ TryAdd ( typeof ( NestedTopicListAttribute ) ) ;
51
+ TryAdd ( typeof ( NumberAttribute ) ) ;
52
+ TryAdd ( typeof ( QueryableTopicListAttribute ) ) ;
53
+ TryAdd ( typeof ( RelationshipAttribute ) ) ;
54
+ TryAdd ( typeof ( TextAreaAttribute ) ) ;
55
+ TryAdd ( typeof ( TextAttribute ) ) ;
56
+ TryAdd ( typeof ( TokenizedTopicListAttribute ) ) ;
57
+ TryAdd ( typeof ( TopicListAttribute ) ) ;
58
+ TryAdd ( typeof ( TopicReferenceAttribute ) ) ;
59
59
60
60
}
61
61
0 commit comments