mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 12:45:01 +00:00
fix: Fixed issue with GetSyntaxName giving incorrect results for nullable types
This commit is contained in:
@@ -317,7 +317,7 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
|
|
||||||
Type nullableType = Nullable.GetUnderlyingType(extends);
|
Type nullableType = Nullable.GetUnderlyingType(extends);
|
||||||
if (nullableType != null)
|
if (nullableType != null)
|
||||||
return nullableType.Name + "?";
|
return nullableType.GetSyntaxName() + "?";
|
||||||
|
|
||||||
if (!(extends.IsGenericType && extends.Name.Contains('`')))
|
if (!(extends.IsGenericType && extends.Name.Contains('`')))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user