Esempio n. 1
0
 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()}"),
     });
Esempio n. 2
0
 public ValueRenderNode(ValueBlueprint valueBlueprint)
 {
     _value = valueBlueprint.Value;
 }