Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

LINQ

Aug
2,799
144
I have been using LINQPad 5 (Premium Edition) v5.52.01 for the past several years,
to test my C# Code.

1776016084476.webp


Language-Integrated Query (LINQ) is the name for a set of technologies based on the integration of query capabilities directly into the C# language.

Traditionally, queries against data are expressed as simple strings without type checking at compile time or IntelliSense support.

Furthermore, you have to learn a different query language for each type of data source:
SQL databases,
XML documents,
various Web services, and so on.

With LINQ, a query is a first-class language construct,
just like classes, methods, and events.

After testing,
I would put the code in a .csx file, and run it using;
Code:
cscs.exe myfile.csx

R:\>cscs.exe

C# Script execution engine. Version 3.30.5.2.
Copyright (C) 2004-2018 Oleg Shilo. www.csscript.net (github.com/oleg-shilo/cs-script)

   CLR:             4.0.30319.42000 (.NET Framework v4.8 or later)
   System:          Microsoft Windows NT 6.2.9200.0
   Corlib:          C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll
   Architecture:    x64
   Install dir:     E:\CS-SCRIPT
   Location:        E:\CS-SCRIPT\cscs.exe
   Config file:     E:\CS-SCRIPT\css_config.xml
   Compiler:        e:\utils\csscodeprovider.dll
   NuGet manager:   E:\CS-SCRIPT\lib\nuget.exe
   NuGet cache:     C:\ProgramData\CS-Script\nuget

Now, with the ability to create plugins using .NET in TCC v36,
I can put all of these C# routines into a single file (plugin),
and easily access them all from TCC as commands and functions.

Ref: Square each number in an array, without using loops.

Joe
 
Back
Top