mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
Slightly lighter JSON
This commit is contained in:
parent
29e1ef82bb
commit
45d88b1efb
1 changed files with 10 additions and 2 deletions
|
|
@ -45,8 +45,16 @@ namespace ICD.Common.Utils.Extensions
|
|||
if (extends == null)
|
||||
throw new ArgumentNullException("extends");
|
||||
|
||||
string assemblyName = type == null ? null : type.AssemblyQualifiedName;
|
||||
extends.WriteValue(assemblyName);
|
||||
string name;
|
||||
|
||||
if (type == null)
|
||||
name = null;
|
||||
else if (type.IsPrimitive)
|
||||
name = type.Name;
|
||||
else
|
||||
name = type.AssemblyQualifiedName;
|
||||
|
||||
extends.WriteValue(name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue