Evaluates C# code.
- Namespace
- Statiq
.Core - Interfaces
- Base Types
-
- object
- Shortcode
Syntax
public class EvalShortcode : Shortcode, IShortcode
Examples
<?# Eval ?><?# return 1 + 2; ?><?#/ Eval ?>
Remarks
The current context and document are in-scope as
Context
and Document
respectively and can be used from within the script.Methods
Name | Return Value | Summary |
---|---|---|
ExecuteAsync |
Task |