Search

Index

Revindex Task Scheduler

Using functions (Razor C#)

You can create functions in Razor (C#) for more complex operations:

@functions{
  private string HelloWorld(){
      return "Hello world!";
  }
}

@{
  System.IO.File.WriteAllText("C:\\MyFolder\\MyFile.txt", HelloWorld());
}

Comments


Powered by Revindex Wiki