<c:delegate
as? = type_name >
<!-- Content: (c:param*, sequence-constructor) -->
</c:delegate>
Creates a template delegate.
- Category
- instruction
- Permitted parent elements
- Any XCST element whose content model is sequence-constructor
- Any literal result element
Attributes
as |
The return type. |
In addition to the attributes in the preceding table, there are a number of standard attributes that may appear on any XCST element.
Type of a Delegate
c:delegate
returns a delegate of type Xcst.XcstDelegate<TItem>
, where TItem
is the return item type. However, you don’t need to specify it thanks to type inference.