void Main()
{
// Write code to test your extensions here. Press F5 to compile and run.
}
public static class MyExtensions
{
// Write custom extension methods here. They will be available to all queries.
public static int Sum(int a, int b)
{
return a + b;
}
}
// You can also define non-static classes, enums, etc.
Query (Move 'using' directory into Query Properties: Yes):
Comments
Query (Move 'using' directory into Query Properties: Yes):
"FOO".Contains ("oo", true).Dump(); // case-insensitive
Another example: