Building a .NET Standard 2.0 library that uses LINQ
In this recipe, we will be using LINQ inside our .NET Standard 2.0 library. LINQ stands for .NET Language-Integrated Query. LINQ defines a set of general purpose standard query operators: list, select, sort, and projection operators in any .NET-based programming language. The standard query operators allow queries to be applied to any IEnumerable<T>
—based information source.
We will be building a .NET Standard 2.0 library that utilizes LINQ and use the library in the next recipe.
Getting ready
Let's get prepared by opening Visual Studio 2017 and creating a .NET Standard 2.0 library-based project. We can start with a blank solution and later on add the library project.
How to do it...
- Open Visual Studio 2017.
- Click
File
|New
|Project
and, in the New Project template dialog box, selectVisual Studio Solutions
under theOther Project Types
node in the left-hand pane and thenBlank Solution
in the right-hand pane. - In the
Name:
text box...