/// <summary> /// Adds a SIFElement parsed from a specific version of SIF to the parent. /// The formatter instance may use version-specific rules to ensure that the /// hierarchy is properly maintained when the source of the content is from /// this version of SIF /// </summary> /// <param name="contentParent"> The element to add content to</param> /// <param name="content">The element to add</param> /// <param name="version"> The version of SIF that the SIFElement is being constructed /// from</param> public override SifElement AddChild( SifElement contentParent, SifElement content, SifVersion version) { contentParent.RestoreImplementationDef(content); return(GetContainer(contentParent, content.ElementDef, version).AddChild(content)); }
/// <summary> /// Adds a SIFElement parsed from a specific version of SIF to the parent. /// The formatter instance may use version-specific rules to ensure that the /// hierarchy is properly maintained when the source of the content is from /// this version of SIF /// </summary> /// <param name="contentParent"> The element to add content to</param> /// <param name="content">The element to add</param> /// <param name="version"> The version of SIF that the SIFElement is being constructed /// from</param> public override SifElement AddChild( SifElement contentParent, SifElement content, SifVersion version) { contentParent.RestoreImplementationDef(content); return GetContainer(contentParent, content.ElementDef, version).AddChild(content); }