I would like to support this kind of syntax
#load "script.csx"
#r "System.Linq"
using System;
public void Log(string s)
{
Console.WriteLine(s);
}
var a = 10;
a++;
Log(a);
How can i do ?
I would like to support this kind of syntax
#load "script.csx"
#r "System.Linq"
using System;
public void Log(string s)
{
Console.WriteLine(s);
}
var a = 10;
a++;
Log(a);
How can i do ?
Hello,
We don't have support for third-party (that aren't part of the C# spec) pre-processor directives at this time. We will log the suggestion to add as a possibility in the future.
In the meantime, another option is for you to get the source code of the add-on and change it so that it supports the additional pre-processor directives.
I too would like to have this feature. Seems simple enough to implement as an option. I think K&R style indenting is probably more popular for .NET.
Please log in to a validated account to post comments.