Skip to content

DiGi.Core.IO.File

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.Core.IO.File Namespace

Classes

Query Class

public static class Query

Inheritance System.Object → Query

Methods

Query.Decode(string) Method

Decodes the specified string into a DiGi.Core.Classes.UniqueReference.

public static DiGi.Core.Classes.UniqueReference? Decode(string? text);

Parameters

text System.String

The string to decode.

Returns

DiGi.Core.Classes.UniqueReference
The decoded DiGi.Core.Classes.UniqueReference, or null if the decoding process fails.

Query.Encode(string) Method

Encodes the specified string for use as a reference.

public static string? Encode(string? text);

Parameters

text System.String

The string to encode.

Returns

System.String
The encoded string, or null if the input is null.

Query.Encode(this UniqueReference) Method

Encodes the specified DiGi.Core.Classes.UniqueReference into its string representation.

public static string? Encode(this DiGi.Core.Classes.UniqueReference? uniqueReference);

Parameters

uniqueReference DiGi.Core.Classes.UniqueReference

The unique reference to encode.

Returns

System.String
The encoded string representation of the unique reference, or null if the input is null.

Query.TryGetEncoding(string, Encoding) Method

Attempts to determine the text encoding of the specified file.

public static bool TryGetEncoding(string? filePath, out System.Text.Encoding? encoding);

Parameters

filePath System.String

The path to the file.

encoding System.Text.Encoding

When this method returns, contains the encoding of the specified file if successful; otherwise, null.

Returns

System.Boolean
True if the encoding was successfully determined; otherwise, false.

Clone this wiki locally