@@ -34,7 +34,7 @@ public static int GetStructSize(bool isBinary32Bit, float metadataVersion)
34
34
//unresolvedVirtualCallPointers
35
35
size += 2 * ptrSize ;
36
36
37
- if ( metadataVersion >= 29.1f )
37
+ if ( metadataVersion is ( > 29.1f and < 31f ) or >= 31 .1f)
38
38
//unresolvedInstanceCallPointers and unresolvedStaticCallPointers
39
39
size += 2 * ptrSize ;
40
40
@@ -78,8 +78,8 @@ public static int GetStructSize(bool isBinary32Bit, float metadataVersion)
78
78
public ulong unresolvedVirtualCallCount ; //Renamed to unresolvedIndirectCallCount in v29.1
79
79
public ulong unresolvedVirtualCallPointers ;
80
80
81
- [ Version ( Min = 29.1f ) ] public ulong unresolvedInstanceCallPointers ;
82
- [ Version ( Min = 29.1f ) ] public ulong unresolvedStaticCallPointers ;
81
+ [ Version ( Min = 29.1f , Max = 31f ) , Version ( Min = 31.1f ) ] public ulong unresolvedInstanceCallPointers ;
82
+ [ Version ( Min = 29.1f , Max = 31f ) , Version ( Min = 31.1f ) ] public ulong unresolvedStaticCallPointers ;
83
83
84
84
[ Version ( Min = 23 ) ] public ulong interopDataCount ;
85
85
[ Version ( Min = 23 ) ] public ulong interopData ;
@@ -119,7 +119,7 @@ public override void Read(ClassReadingBinaryReader reader)
119
119
unresolvedVirtualCallCount = reader . ReadNUint ( ) ;
120
120
unresolvedVirtualCallPointers = reader . ReadNUint ( ) ;
121
121
122
- if ( IsAtLeast ( 29.1f ) )
122
+ if ( IsAtLeast ( 29.1f ) && IsNot ( 31f ) )
123
123
{
124
124
unresolvedInstanceCallPointers = reader . ReadNUint ( ) ;
125
125
unresolvedStaticCallPointers = reader . ReadNUint ( ) ;
0 commit comments