From c357f4f2f97b98048ba5508cb9919193f069e523 Mon Sep 17 00:00:00 2001 From: Gabriel De La Parra Date: Thu, 23 Feb 2023 17:59:25 +0100 Subject: [PATCH 1/2] Add case for object as a reference (Object&). Closes #4 --- Eltons.ReflectionKit/TypeSignature.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Eltons.ReflectionKit/TypeSignature.cs b/Eltons.ReflectionKit/TypeSignature.cs index b2fbb64..6f65029 100644 --- a/Eltons.ReflectionKit/TypeSignature.cs +++ b/Eltons.ReflectionKit/TypeSignature.cs @@ -73,6 +73,7 @@ public static string GetQualifiedTypeName(Type type) return "decimal"; case "Object": + case "Object&": return "object"; case "Void": From 256b5c83cbb3e09315ee1b3db3b13e353b4094db Mon Sep 17 00:00:00 2001 From: Gabriel De La Parra Date: Thu, 23 Feb 2023 19:14:17 +0100 Subject: [PATCH 2/2] Add double as a known type --- Eltons.ReflectionKit/TypeSignature.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Eltons.ReflectionKit/TypeSignature.cs b/Eltons.ReflectionKit/TypeSignature.cs index 6f65029..4b09a73 100644 --- a/Eltons.ReflectionKit/TypeSignature.cs +++ b/Eltons.ReflectionKit/TypeSignature.cs @@ -69,6 +69,9 @@ public static string GetQualifiedTypeName(Type type) case "Int32": return "int"; + case "Double": + return "double"; + case "Decimal": return "decimal";