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 7, 2026
1mo ago
Total Downloads
70.5K
70,462

Install

dotnet add package Metalama.LinqPad --version 2027.0.1-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

v2026.1.30v2027.0.1-preview
Added Frameworks
net10.0-windows7.0
Removed Frameworks
net8.0-windows7.0
Added Dependencies
LINQPad.Reference(net10.0-windows7.0)
Metalama.Extensions.Metrics(net10.0-windows7.0)
Metalama.Framework.Sdk(net10.0-windows7.0)
Metalama.Framework.Workspaces(net10.0-windows7.0)
Microsoft.Extensions.Logging(net10.0-windows7.0)
Removed Dependencies
LINQPad.Reference(net8.0-windows7.0)
Metalama.Extensions.Metrics(net8.0-windows7.0)
Metalama.Framework.Sdk(net8.0-windows7.0)
Microsoft.Extensions.Logging(net8.0-windows7.0)

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.