Table of Contents

Interface ICompilerDirective

Namespace
Dassie.Extensions
Assembly
dc.dll

Represents a custom compiler directive enabled by the ${...} syntax.

public interface ICompilerDirective
Extension Methods

Properties

Identifier

The name of the compiler directive.

string Identifier { get; }

Property Value

string

IgnoreArgumentTypes

If true, all arguments will be passed as strings implicitly.

bool IgnoreArgumentTypes { get; }

Property Value

bool

Methods

Invoke(DirectiveContext)

The method that is called when the compiler directive is invoked.

object Invoke(DirectiveContext context)

Parameters

context DirectiveContext

An object of type DirectiveContext representing the metadata associated with the directive invocation.

Returns

object

The return value of the invocation.