XSharp LINQ 101 samples

Introduction

This is the starting point to the LINQ samples. The samples show how to use different LINQ methods with X# (Core or VO dialect). The samples are written using the Lambda syntax. If the LINQ method used in the sample also supports the query syntax, tabs are shown to switch between Lambda and Query syntax.

The samples are grouped by operation type. Use the tree on the left to select one of the operation types or samples.

Sample structure

Every sample is structured in the following way:

SectionContains
DescriptionA short introduction to the LINQ method demonstrated in the sample.
SampleA short description of the sample and the code. Tabs to switch between Lambda and Query syntax are shown, if the query syntax is supported for the method.
OutputThe output produced by the sample.
Complete sampleThe complete sample code, including the usings, the execute procedure to run the sample and additional class definitions if necessary.