Metalama.LinqPad
v2025.2.2-previewPre-release
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
Sep 19, 2025
1y ago
Total Downloads
70.5K
70,462
Install
dotnet add package Metalama.LinqPad --version 2025.2.2-preview
| 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 v2025.2.1-preview and v2025.2.2-preview.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.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.