@@ -80,12 +80,11 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
80
80
} ) ;
81
81
82
82
// Gather all property changing names
83
- IncrementalValueProvider < ImmutableArray < string > > propertyChangingNames =
83
+ IncrementalValueProvider < EquatableArray < string > > propertyChangingNames =
84
84
propertyInfo
85
85
. SelectMany ( static ( item , _ ) => item . Info . Value . PropertyChangingNames )
86
86
. Collect ( )
87
- . Select ( static ( item , _ ) => item . Distinct ( ) . ToImmutableArray ( ) )
88
- . WithComparer ( EqualityComparer < string > . Default . ForImmutableArray ( ) ) ;
87
+ . Select ( static ( item , _ ) => item . Distinct ( ) . ToImmutableArray ( ) . AsEquatableArray ( ) ) ;
89
88
90
89
// Generate the cached property changing names
91
90
context . RegisterSourceOutput ( propertyChangingNames , static ( context , item ) =>
@@ -99,12 +98,11 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
99
98
} ) ;
100
99
101
100
// Gather all property changed names
102
- IncrementalValueProvider < ImmutableArray < string > > propertyChangedNames =
101
+ IncrementalValueProvider < EquatableArray < string > > propertyChangedNames =
103
102
propertyInfo
104
103
. SelectMany ( static ( item , _ ) => item . Info . Value . PropertyChangedNames )
105
104
. Collect ( )
106
- . Select ( static ( item , _ ) => item . Distinct ( ) . ToImmutableArray ( ) )
107
- . WithComparer ( EqualityComparer < string > . Default . ForImmutableArray ( ) ) ;
105
+ . Select ( static ( item , _ ) => item . Distinct ( ) . ToImmutableArray ( ) . AsEquatableArray ( ) ) ;
108
106
109
107
// Generate the cached property changed names
110
108
context . RegisterSourceOutput ( propertyChangedNames , static ( context , item ) =>
0 commit comments