From 4df2ede6304e11fbf25a799cc0f536e8fac02af4 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Thu, 19 Jul 2018 15:54:06 -0400 Subject: [PATCH] fix: Fixed issue with GetSyntaxName giving incorrect results for nullable types --- ICD.Common.Utils/Extensions/TypeExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICD.Common.Utils/Extensions/TypeExtensions.cs b/ICD.Common.Utils/Extensions/TypeExtensions.cs index b0f59db..e327472 100644 --- a/ICD.Common.Utils/Extensions/TypeExtensions.cs +++ b/ICD.Common.Utils/Extensions/TypeExtensions.cs @@ -317,7 +317,7 @@ namespace ICD.Common.Utils.Extensions Type nullableType = Nullable.GetUnderlyingType(extends); if (nullableType != null) - return nullableType.Name + "?"; + return nullableType.GetSyntaxName() + "?"; if (!(extends.IsGenericType && extends.Name.Contains('`'))) {