Skip to main content

Module csharp

Module csharp 

Source
Expand description

C#: .csproj projects and their NuGet packages, using directives, risks, the package-to-crate table, and public static methods of public classes with C# types mapped into the TS-like type dialect. A unit is a folder.

Functions§

csharp_to_ts
A C# type in the TS-like dialect, or why the bridge cannot carry it.
discover
exports
public static methods of the file’s public classes. prototype holds the declaring class’s fully qualified name and the signature: Acme.Text.Slug.Slugify(string text).
is_test_project
A project of tests: it references a test framework or says IsTestProject.
lookup
Rust counterparts of common NuGet packages, by package id or namespace.
package_references
Include of each <PackageReference> in a project file, outside <!-- --> comments.
resolve
scan
use_shapes
Makes exports read the project’s records and plain classes (public auto-properties, no constructor arguments) on this thread, so methods taking or returning them can cross as JSON objects.
using_directives
The file’s using directives as written (using static, aliases and global using too).