File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ private static bool TypeIsSimple(Type type)
209
209
var typeInfo = type . GetTypeInfo ( ) ;
210
210
if ( typeInfo . IsGenericType ) {
211
211
var genericDef = typeInfo . GetGenericTypeDefinition ( ) ;
212
- return ( genericDef == WellKnownTypes . NullableOfT || genericDef . IsAssignableTo ( WellKnownTypes . IReadOnlyList ) )
212
+ return ( genericDef == WellKnownTypes . NullableOfT || genericDef . IsAssignableTo ( WellKnownTypes . IReadOnlyListOfT ) )
213
213
&& TypeIsSimple ( typeInfo . GetGenericArguments ( ) [ 0 ] ) ;
214
214
}
215
215
else if ( typeInfo . IsArray ) {
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ internal static class WellKnownTypes
74
74
75
75
public static readonly Type ByteArray = typeof ( byte [ ] ) ;
76
76
public static readonly Type ObjectArray = typeof ( object [ ] ) ;
77
- public static readonly Type IReadOnlyList = typeof ( IReadOnlyList < > ) ;
77
+ public static readonly Type IReadOnlyListOfT = typeof ( IReadOnlyList < > ) ;
78
78
79
79
public static readonly Type DefaultMemberAttribute = typeof ( DefaultMemberAttribute ) ;
80
80
}
You can’t perform that action at this time.
0 commit comments