csharp ( version Mono C# compiler version 4.0.0.0) allow to write C# scripts, like
#!/usr/bin/csharp
Console.WriteLine( "Hello world !" );
I tried to add a main() function, but got parsing errors, like
{interactive}(1,9): error CS1525: Unexpected symbol `(', expecting `,', `;', or `='
Are there docs about this scripting ?
Does it allow use of functions?
You need a newer version of mono/csharp: either wait for a new release of mono 2.11.x/2.12.x or compile it yourself from git. That allows you to define classes interactively.