mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
fix: Fixed issue with GetSyntaxName giving incorrect results for nullable types
This commit is contained in:
parent
8d0b4ca767
commit
4df2ede630
1 changed files with 1 additions and 1 deletions
|
|
@ -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('`')))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue