Skip to main content

get_file_overview

Get a summary of a C# file: which types are defined in it and any compiler diagnostics. Useful for quickly understanding a file's contents without reading it. Also accepts .razor/.cshtml markup, resolving it to the C# document its source generator produced.

Parameters

ParameterTypeRequiredDescription
filePathstringFull path to the source file (.cs, or .razor/.cshtml)