Skip to content

Commit 4b59d8e

Browse files
committed
Return enum string if type is enum.
1 parent 362e5eb commit 4b59d8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

framework/src/Volo.Abp.Core/Volo/Abp/Reflection/TypeHelper.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ public static string GetSimplifiedName([NotNull] Type type)
317317
{
318318
return "object";
319319
}
320+
else if (type.IsEnum)
321+
{
322+
return "enum";
323+
}
320324

321325
return type.FullName ?? type.Name;
322326
}

0 commit comments

Comments
 (0)