mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-13 03:35:04 +00:00
perf: Don't serialize namespace for builtin types
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user