/// <inheritdoc /> public override void AppendChild(Pair child) { if (Assignment == AssignmentEnum.CE && !(child is Comment)) { base.AppendChild(child); return; } if (child is Entity entity && !(child is Argument)) { Entities.Add(entity); return; } if (child is NamespaceDefinition ns) { NamespaceDefinitions.Add(ns); return; } base.AppendChild(child); }
public override void AppendChild(Pair child) { Value = null; PairValue = null; var entity = child as Entity; if (entity != null) { DocumentElement = entity; Entities.Add(entity); return; } var ns = child as NamespaceDefinition; if (ns != null) { NamespaceDefinitions.Add(ns); return; } base.AppendChild(child); }