We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da00c4d commit 416a22fCopy full SHA for 416a22f
source/MetadataProcessor.Core/nanoSkeletonGenerator.cs
@@ -176,7 +176,10 @@ private void GenerateAssemblyHeader()
176
177
// static fields
178
int fieldCount = 0;
179
- foreach (var f in c.Fields.Where(f => f.IsStatic && !f.HasConstant))
+ var staticFields = c.Fields.Where(f => f.IsStatic && !f.HasConstant);
180
+ staticFieldCount += staticFields.Count();
181
+
182
+ foreach (var f in staticFields)
183
{
184
classData.StaticFields.Add(new StaticField()
185
@@ -245,8 +248,6 @@ private void GenerateAssemblyHeader()
245
248
assemblyData.Classes.Add(classData);
246
249
}
247
250
-
- staticFieldCount += c.Fields.Count(f => f.IsStatic);
251
252
253
var stubble = new StubbleBuilder().Build();
0 commit comments