Table of Contents

Struct FunctionCall

Namespace
Invex.Rez.Abstraction
Assembly
Invex.Rez.dll

Contains the arguments for a Rez function call.

When an IResolver encounters a function in a Rez template (e.g., {name(args)}), it constructs a FunctionCall from the text between the parentheses and passes it to the function delegate obtained from an IResolverSource.

[PublicAPI]
public readonly record struct FunctionCall

Constructors

FunctionCall(string?)

Contains the arguments for a Rez function call.

When an IResolver encounters a function in a Rez template (e.g., {name(args)}), it constructs a FunctionCall from the text between the parentheses and passes it to the function delegate obtained from an IResolverSource.

public FunctionCall(string? Args)

Parameters

Args string

The raw argument text of the function call, as a single string.
For example, for the template {repeat(abc,3)}, this would be "abc,3".
The function itself is responsible for parsing this text; no splitting or trimming is performed.

Properties

Args

The raw argument text of the function call, as a single string.
For example, for the template {repeat(abc,3)}, this would be "abc,3".
The function itself is responsible for parsing this text; no splitting or trimming is performed.

public string? Args { get; init; }

Property Value

string