Skip to content

Commit c169188

Browse files
committed
Fix PrintSignatureForType
Signed-off-by: José Simões <[email protected]>
1 parent 0e223e4 commit c169188

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

source/MetadataProcessor.Core/nanoDumperGenerator.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,16 @@ private void DumpAssemblyReferences(DumpAllTable dumpTable)
307307

308308
private string PrintSignatureForType(TypeReference type)
309309
{
310+
if(type.MetadataType == MetadataType.IntPtr)
311+
{
312+
return "I";
313+
}
314+
315+
if (type.MetadataType == MetadataType.UIntPtr)
316+
{
317+
return "U";
318+
}
319+
310320
nanoCLR_DataType dataType;
311321
if (nanoSignaturesTable.PrimitiveTypes.TryGetValue(type.FullName, out dataType))
312322
{
@@ -363,15 +373,6 @@ private string PrintSignatureForType(TypeReference type)
363373
return arraySig.ToString();
364374
}
365375

366-
if(type.MetadataType == MetadataType.IntPtr)
367-
{
368-
return "I";
369-
}
370-
371-
if (type.MetadataType == MetadataType.UIntPtr)
372-
{
373-
return "U";
374-
}
375376

376377
return "";
377378
}

0 commit comments

Comments
 (0)