perf: Don't serialize namespace for builtin types

This commit is contained in:
Chris Cameron
2019-02-04 13:22:59 -05:00
parent 46a1ea09b6
commit d6abf3fdf6

View File

@@ -24,7 +24,10 @@ namespace ICD.Common.Utils.Extensions
return;
}
string name = type.GetNameWithoutAssemblyDetails();
string name = Type.GetType(type.FullName) == null
? type.GetNameWithoutAssemblyDetails()
: type.FullName;
extends.WriteValue(name);
}