File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
MetadataProcessor.Shared/Tables
MetadataProcessor.Tests/TestNFApp Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ private void FillTypeSpecsFromTypes()
190
190
{
191
191
foreach ( var m in t . Methods . Where ( i => i . HasBody ) )
192
192
{
193
- foreach ( var i in m . Body . Instructions . Where ( i => ( i . Operand is GenericParameter ) || ( i . OpCode . OperandType is OperandType . InlineType && ( ( TypeReference ) i . Operand ) . IsArray ) ) )
193
+ foreach ( var i in m . Body . Instructions . Where ( i => ( i . Operand is GenericParameter ) || ( i . OpCode . OperandType is OperandType . InlineType && ( ( TypeReference ) i . Operand ) . IsArray ) || ( i . OpCode . OperandType is OperandType . InlineTok ) ) )
194
194
{
195
195
// get index of signature for the TypeSpecification
196
196
ushort signatureId ;
Original file line number Diff line number Diff line change @@ -46,9 +46,22 @@ public static void Main()
46
46
// Generics Tests
47
47
_ = new GenericClassTests ( ) ;
48
48
49
+ ///////////////////////////////////////////////////////////////////
50
+ // Miscelaneous Tests
51
+ MiscelaneousTests ( ) ;
52
+
49
53
Debug . WriteLine ( "Exiting TestNFApp" ) ;
50
54
}
51
55
56
+ private static void MiscelaneousTests ( )
57
+ {
58
+ var type = typeof ( short [ ] ) ;
59
+ if ( type . Name != "System.Int16[]" )
60
+ {
61
+ throw new Exception ( "Type name is wrong, should be System.Int16[]" ) ;
62
+ }
63
+ }
64
+
52
65
public static void ReflectionTests ( )
53
66
{
54
67
Debug . WriteLine ( "++++++++++++++++++++++" ) ;
You can’t perform that action at this time.
0 commit comments