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)
209209 var typeInfo = type . GetTypeInfo ( ) ;
210210 if ( typeInfo . IsGenericType ) {
211211 var genericDef = typeInfo . GetGenericTypeDefinition ( ) ;
212- return ( genericDef == WellKnownTypes . NullableOfT || genericDef . IsAssignableTo ( WellKnownTypes . IReadOnlyList ) )
212+ return ( genericDef == WellKnownTypes . NullableOfT || genericDef . IsAssignableTo ( WellKnownTypes . IReadOnlyListOfT ) )
213213 && TypeIsSimple ( typeInfo . GetGenericArguments ( ) [ 0 ] ) ;
214214 }
215215 else if ( typeInfo . IsArray ) {
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ internal static class WellKnownTypes
7474
7575 public static readonly Type ByteArray = typeof ( byte [ ] ) ;
7676 public static readonly Type ObjectArray = typeof ( object [ ] ) ;
77- public static readonly Type IReadOnlyList = typeof ( IReadOnlyList < > ) ;
77+ public static readonly Type IReadOnlyListOfT = typeof ( IReadOnlyList < > ) ;
7878
7979 public static readonly Type DefaultMemberAttribute = typeof ( DefaultMemberAttribute ) ;
8080 }
You can’t perform that action at this time.
0 commit comments