Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 618 Bytes

Summary.Pipes.IO.Source.md

File metadata and controls

30 lines (22 loc) · 618 Bytes
public record Source(string Text, string? Path = null)

A text file with source code.

Properties

public string Text { get; }

The text file content.

public string? Path { get; }

The path to the file.

Methods

public static async Task<Source> Read(string path, CancellationToken token = default)

Reads source code from the specified file.