Class Handler
- Namespace
- DirectoryToObject
- Assembly
- DirectoryToObject.dll
Predefined file loading handlers.
public static class Handler
- Inheritance
-
Handler
- Inherited Members
Properties
Directory
Handles directories by opening them so that the processing can continue down the entry. Use this in combination with loader modifiers to handle directories in a specific, non-default, way.
public static DirectoryLoaderBuilder Directory { get; }
Property Value
JsonFile
Handles all files as JSON. Combine this with the WhenExtensionIsOneOf(params string[])
method to narrow the handling to files with one or more specific extension. E.g.,
Handler.JsonFile.WhenExtensionIsOneOf(".json")
public static DirectoryLoaderBuilder JsonFile { get; }
Property Value
TextFile
Handles all files as plain text. Combine this with the WhenExtensionIsOneOf(params string[])
method to narrow the handling to files with one or more specific extension. E.g.,
Handler.TextFile.WhenExtensionIsOneOf(".txt", ".md")
public static DirectoryLoaderBuilder TextFile { get; }