Skip to main content
net10.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 10, 2026
1mo ago
Total Downloads
70.5K
70,462

Install

dotnet add package Metalama.LinqPad --version 2027.0.2-preview
ProductVersions
.NET
net10.0-windows7.0

README

Metalama by PostSharp

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

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.Introspection` exposes concepts 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 v2027.0.1-preview and v2027.0.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.