diff --git a/src/AsmResolver.Symbols.Pdb/Metadata/Info/InfoStream.cs b/src/AsmResolver.Symbols.Pdb/Metadata/Info/InfoStream.cs index 5dd16b073..eae02174c 100644 --- a/src/AsmResolver.Symbols.Pdb/Metadata/Info/InfoStream.cs +++ b/src/AsmResolver.Symbols.Pdb/Metadata/Info/InfoStream.cs @@ -175,8 +175,9 @@ public override void Write(IBinaryStreamWriter writer) writer.WriteUInt32(0); // Write feature codes. - foreach (var feature in Features) - writer.WriteUInt32((uint) feature); + var features = Features; + for (int i = 0; i < features.Count; i++) + writer.WriteUInt32((uint) features[i]); } private static uint ComputeStringHash(Utf8String str)