public RenderNode Mount(Blueprint blueprint) { return(blueprint switch { ComponentBlueprint componentBlueprint => IsPlatformSpecificComponent(componentBlueprint) ? MountPlatformSpecificComponent(componentBlueprint) : MountUserDefinedComponent(componentBlueprint), ValueBlueprint valueBlueprint => MountValueBlueprint(valueBlueprint), _ => throw new Exception($"Unknown Blueprint Type {blueprint.GetType()}"), });
public ValueRenderNode(ValueBlueprint valueBlueprint) { _value = valueBlueprint.Value; }