File System File System
File System File System
DocFX + Singulink = ♥

Search Results for

    Class RelativeDirectoryPathJsonConverter

    Converts IRelativeDirectoryPath paths to and from JSON strings, both as values and as dictionary keys. Paths are written in the Universal format (with / separators) so that they also read on the other platform when their names are valid there, and as their PathDisplay string when they can't be converted to it. Strings are read in the current platform's path format, as the Parse methods on FilePath and DirectoryPath read them on the platform the app runs on with the None option, so a path in that format reads back as the same path.

    Inheritance
    object
    JsonConverter
    JsonConverter<IRelativeDirectoryPath>
    RelativeDirectoryPathJsonConverter
    Inherited Members
    JsonConverter<IRelativeDirectoryPath>.HandleNull
    JsonConverter<IRelativeDirectoryPath>.Type
    Namespace: Singulink.IO.Json
    Assembly: Singulink.IO.FileSystem.dll
    Syntax
    public sealed class RelativeDirectoryPathJsonConverter : JsonConverter<IRelativeDirectoryPath>

    Methods

    Name Description
    CanConvert(Type)

    Determines whether the specified type can be converted.

    Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

    Reads and converts the JSON to type IRelativeDirectoryPath.

    ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)

    Reads a dictionary key from a JSON property name.

    Write(Utf8JsonWriter, IRelativeDirectoryPath, JsonSerializerOptions)

    Writes a specified value as JSON.

    WriteAsPropertyName(Utf8JsonWriter, IRelativeDirectoryPath, JsonSerializerOptions)

    Writes a dictionary key as a JSON property name.

    © Singulink. All rights reserved.