All pages
Powered by GitBook
1 of 1

Loading...

CreateFromString(string,string,Library?,int)

Method in CompilationJob

Summary

Creates a new CompilationJob using the contents of a string.

public static CompilationJob CreateFromString(string fileName, string source, Library? library = null, int languageVersion = Project.CurrentProjectFileVersion)

Parameters

Name
Description

string fileName

The name to assign to the compiled file.

A new .

string source

The text to compile.

library

Library of function definitions to use during compilation.

int languageVersion

The version of the Yarn language to use.

Returns

CompilationJob
Yarn.Library