Method Add
- Namespace
- Velvet.Experimental
- Assembly
- Velvet.Docs.dll
Add(VNode?)
Collection-initializer hook. Accepts any VNode (e.g. the result of a V.* factory or
V.When(...)) and, through the implicit VBuilder -> VNode conversion, any nested builder.
Null children are skipped, matching the V.When(false, ...) convention. The scratch accumulator
list is rented from a pool so repeated authoring does not churn list allocations.
public void Add(VNode? child)
Parameters
childVNode