1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 01:06:01 +08:00

in most cases the data is already set and with this if check we can skip a dictionary lookup

This commit is contained in:
Simon Rodriguez 2022-11-06 10:16:26 +01:00
parent f77fa501f1
commit a75f13e7bd

View File

@ -47,6 +47,7 @@ namespace XNode {
return valueType; return valueType;
} }
set { set {
if (valueType == value) return;
valueType = value; valueType = value;
if (value != null) _typeQualifiedName = NodeDataCache.GetTypeQualifiedName(value); if (value != null) _typeQualifiedName = NodeDataCache.GetTypeQualifiedName(value);
} }