Skip to content

Commit

Permalink
Fix processing of fields for classes deriving from MarshalByRefObject (
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Oct 11, 2022
1 parent 6441718 commit 5760ada
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MetadataProcessor.Shared/nanoSkeletonGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -582,12 +582,11 @@ private int GetInstanceFieldsOffset(TypeDefinition c)

private int GetNestedFieldsCount(TypeDefinition c)
{
ushort tt;

int fieldCount = 0;

if (c.BaseType != null &&
c.BaseType.FullName != "System.Object")
c.BaseType.FullName != "System.Object" &&
c.BaseType.FullName != "System.MarshalByRefObject")
{
// get parent type fields count
fieldCount = GetNestedFieldsCount(c.BaseType.Resolve());
Expand Down

0 comments on commit 5760ada

Please sign in to comment.