Start learning LINQPad, a tool for testing .NET code snippets easily. Explore LINQPad basics, the dump feature, samples of queries, outputs, utilities, debugging, and more.
Overview
Syllabus
Introduction
- Get up and running with LINQPad
- Install LINQPad
- What you should know
- Get the code on GitHub
- The case for a lightweight editor
- Quick tour of the LINQPad editor
- Use the course files in LINQPad
- Explore the expression editor
- Explore the statements editor
- Run simple LINQ query expressions
- Explore the programs editor
- Add references to libraries
- Understand the .linq file format
- Explore the WebColors data source
- WriteLine vs. the Dump extension method
- Understand the Dump helper
- Create descriptive output with the Dump header
- Run a selected area of code
- Exclude and include columns
- Repeat table headers
- Change output to grid control
- What sources are valid for LINQ to Objects
- Basic LINQ query operators
- Write LINQ query expressions
- Connect to a database
- Query the database with SQL
- Use the DataContext
- Query the database with a LINQ expression
- Configure an XML file as a data source
- Query the XML file
- Filter by attributes
- Use a fixed-width font in the results pane
- Change the appearance with custom CSS
- Side by side output
- Highlight output
- Display difference between two objects
- Snapshot the state of an object for comparison
- Cache data between query runs
- Write your own extensions
- Use references and NuGet packages
- How to use namespaces
- View any referenced class code with ILSpy
- Debugging and break points
- The debug Locals and Watch windows
- Find in files
- Visualize data with the Chart extension method
- Explore the LINQPad samples
- Replace reflection with the Uncapsulate method
- The rest of LINQPad
- Next steps
Taught by
Walt Ritscher