diff --git a/src/System.Private.Windows.Core/src/System/Private/Windows/Core/Nrbf/SerializationRecordExtensions.cs b/src/System.Private.Windows.Core/src/System/Private/Windows/Core/Nrbf/SerializationRecordExtensions.cs index 7f9ba95a70b..6537c9da088 100644 --- a/src/System.Private.Windows.Core/src/System/Private/Windows/Core/Nrbf/SerializationRecordExtensions.cs +++ b/src/System.Private.Windows.Core/src/System/Private/Windows/Core/Nrbf/SerializationRecordExtensions.cs @@ -349,7 +349,7 @@ static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? list || !classInfo.HasMember("_size") || classInfo.GetRawValue("_size") is not int size || !classInfo.TypeName.IsConstructedGenericType - || classInfo.TypeName.GetGenericTypeDefinition().Name != typeof(List<>).Name + || classInfo.TypeName.GetGenericTypeDefinition().Name != nameof(List<>) || classInfo.TypeName.GetGenericArguments().Length != 1 || classInfo.GetRawValue("_items") is not ArrayRecord arrayRecord || !IsPrimitiveArrayRecord(arrayRecord))