public ComponentNode CreateAndInsertComponent(int componentId, int childIndex) { var componentElement = new ComponentNode(componentId); InsertLogicalChild(componentElement, childIndex); return(componentElement); }
private void SerializeComponent(int id, ComponentNode component) { Write("[Component ( "); Write(id.ToString()); WriteLine(" )]"); _depth++; SerializeChildren(component); _depth--; }
private void SerializeComponent(ComponentNode component) { Write("[Component ( "); Write(component.ComponentId.ToString(CultureInfo.InvariantCulture)); WriteLine(" )]"); _depth++; SerializeChildren(component); _depth--; }
private void UpdateComponent(RenderBatch batch, int componentId, ArrayBuilderSegment <RenderTreeEdit> edits) { if (!Components.TryGetValue(componentId, out var component)) { component = new ComponentNode(componentId); Components.Add(componentId, component); } ApplyEdits(batch, component, 0, edits); }