net8.0-windows7.0
Loads any C# project or solution into LINQPad and exposes its code model to queries. This package contains an optional driver, samples, and dumping methods.
Published
Mar 24, 2026
6mo ago
Total Downloads
70.5K
70,462
Install
dotnet add package Metalama.LinqPad --version 2026.0.19
| Product | Versions |
|---|---|
| .NET |
README
The Metalama.LinqPad package allows you to load any C# project or solution into LINQPad and exposes its code model to queries. This package contains an optional driver, samples, and dumping methods.
Documentation
- Metalama.LinqPad conceptual documentation.
- Code model API documentation for APIs like
IDeclaration,INamedType,IMethod, ... - Introspection API documentation for APIs like
Workspace,Project,IIntrospectionAspectInstance,IIntrospectionAspectClass,IIntrospectionAspectDiagnostic, ...
Example
The following query lists all public methods in a project:
workspace
.SourceCode
.Methods
.Where( m => m.Accessibility == Accessibility.Public && m.DeclaringType.Accessibility == Accessibility.Public )
.GroupBy( m => m.DeclaringType.FullName )
.OrderBy( g => g.Key )
```
## Related Packages
* `Metalama.Framework.Workspaces` allows you to do code queries in arbitrary projects without LinqPad.
* `Metalama.Framework.Instrospection` exposes concepts like like `Workspace`, `Project`, `IIntrospectionAspectInstance`, `IIntrospectionAspectClass`, `IIntrospectionAspectDiagnostic`, ...
* `Metalama.Framework` exposes the basic code model in the `Metalama.Framework.Code` namespace.
Changes from Previous Version
No structural changes between v2026.0.18 and v2026.0.19.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.