File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Kiota.Builder/CodeDOM Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ public CodeComposedTypeBase? OriginalComposedType
48
48
public CodeIndexer ? Indexer => InnerChildElements . Values . OfType < CodeIndexer > ( ) . FirstOrDefault ( static x => ! x . Deprecation ? . IsDeprecated ?? true ) ;
49
49
public void AddIndexer ( params CodeIndexer [ ] indexers )
50
50
{
51
- if ( indexers == null || indexers . Any ( static x => x == null ) )
51
+ if ( indexers == null || Array . Exists ( indexers , static x => x == null ) )
52
52
throw new ArgumentNullException ( nameof ( indexers ) ) ;
53
53
if ( ! indexers . Any ( ) )
54
54
throw new ArgumentOutOfRangeException ( nameof ( indexers ) ) ;
55
55
56
56
foreach ( var value in indexers )
57
57
{
58
58
var existingIndexers = InnerChildElements . Values . OfType < CodeIndexer > ( ) . ToArray ( ) ;
59
- if ( existingIndexers . Any ( x => ! x . IndexParameterName . Equals ( value . IndexParameterName , StringComparison . OrdinalIgnoreCase ) ) ||
59
+ if ( Array . Exists ( existingIndexers , x => ! x . IndexParameterName . Equals ( value . IndexParameterName , StringComparison . OrdinalIgnoreCase ) ) ||
60
60
InnerChildElements . Values . OfType < CodeMethod > ( ) . Any ( static x => x . IsOfKind ( CodeMethodKind . IndexerBackwardCompatibility ) ) )
61
61
{
62
62
foreach ( var existingIndexer in existingIndexers )
You can’t perform that action at this time.
0 commit comments