var type = XamlParser.GetElementType(node.XmlType, node, Context.RootElement?.GetType().GetTypeInfo().Assembly,
out xpe);
if (type == null)
- throw new ArgumentNullException(nameof(type));
+ throw new ArgumentNullException(null, "type should not be null");
if (xpe != null)
throw xpe;
INode xKey;
if (!node.Properties.TryGetValue(XmlName.xKey, out xKey))
xKey = null;
-
+
node.Properties.Clear();
node.CollectionItems.Clear();