Skip to content

Commit 5760ada

Browse files
authored
Fix processing of fields for classes deriving from MarshalByRefObject (#158)
1 parent 6441718 commit 5760ada

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

MetadataProcessor.Shared/nanoSkeletonGenerator.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,12 +582,11 @@ private int GetInstanceFieldsOffset(TypeDefinition c)
582582

583583
private int GetNestedFieldsCount(TypeDefinition c)
584584
{
585-
ushort tt;
586-
587585
int fieldCount = 0;
588586

589587
if (c.BaseType != null &&
590-
c.BaseType.FullName != "System.Object")
588+
c.BaseType.FullName != "System.Object" &&
589+
c.BaseType.FullName != "System.MarshalByRefObject")
591590
{
592591
// get parent type fields count
593592
fieldCount = GetNestedFieldsCount(c.BaseType.Resolve());

0 commit comments

Comments
 (0)