Skip to content

Commit b348638

Browse files
disable a noisy analyser
1 parent b8b4697 commit b348638

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/System.Private.Windows.Core/src/System/Private/Windows/Nrbf/SerializationRecordExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? list
325325
|| !classInfo.HasMember("_size")
326326
|| classInfo.GetRawValue("_size") is not int size
327327
|| !classInfo.TypeName.IsConstructedGenericType
328+
#pragma warning disable IDE0082 // 'typeof' can be converted to 'nameof' - but not for generics, waiting for a fix - https://github.com/dotnet/roslyn/pull/76920
328329
|| classInfo.TypeName.GetGenericTypeDefinition().Name != typeof(List<>).Name
330+
#pragma warning restore IDE0082
329331
|| classInfo.TypeName.GetGenericArguments().Length != 1
330332
|| classInfo.GetRawValue("_items") is not ArrayRecord arrayRecord
331333
|| !IsPrimitiveArrayRecord(arrayRecord))

0 commit comments

Comments
 (0)