diff options
author | Marek Safar <marek.safar@gmail.com> | 2021-03-15 22:06:28 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2021-03-15 22:06:28 +0300 |
commit | e069cd8d25d5b61b0e28fe65e75959c20af7aa80 (patch) | |
tree | 29dbd0329e51715722f005ce269646cc14fb2ed1 /Mono.Cecil/AssemblyReader.cs | |
parent | 2f9b2fb759c50e756f9c6580b9fb8518581020c0 (diff) | |
parent | 553506adb74b1edbc12a8fb8cd681dcc93f180cf (diff) |
Merge remote-tracking branch 'upstream/master' into main
Diffstat (limited to 'Mono.Cecil/AssemblyReader.cs')
-rw-r--r-- | Mono.Cecil/AssemblyReader.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mono.Cecil/AssemblyReader.cs b/Mono.Cecil/AssemblyReader.cs index d18a51e..2a59358 100644 --- a/Mono.Cecil/AssemblyReader.cs +++ b/Mono.Cecil/AssemblyReader.cs @@ -3013,7 +3013,7 @@ namespace Mono.Cecil { value = new decimal (signature.ReadInt32 (), signature.ReadInt32 (), signature.ReadInt32 (), (b & 0x80) != 0, (byte) (b & 0x7f)); } else if (type.IsTypeOf ("System", "DateTime")) { value = new DateTime (signature.ReadInt64()); - } else if (type.etype == ElementType.Object || type.etype == ElementType.None || type.etype == ElementType.Class || type.etype == ElementType.Array) { + } else if (type.etype == ElementType.Object || type.etype == ElementType.None || type.etype == ElementType.Class || type.etype == ElementType.Array || type.etype == ElementType.GenericInst) { value = null; } else value = signature.ReadConstantSignature (type.etype); |