C#C
C#2y ago
5 replies
cow

Is there a tool to view c# generated code but still at high level?

Example, if I have:

public readonly record struct Point(double X, double Y, double Z);


I want to view what this translates/generates to, e.g:

public record struct Point
{
    public double X { get; init; }
    public double Y { get; init; }
    public double Z { get; init; }
}


I tried LINQPad, but it's giving me a low-level translation like the attached screenshot
image.png
Was this page helpful?