mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-09 09:45:10 +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);
|
||||
if (nullableType != null)
|
||||
return nullableType.Name + "?";
|
||||
return nullableType.GetSyntaxName() + "?";
|
||||
|
||||
if (!(extends.IsGenericType && extends.Name.Contains('`')))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user