<PackageReference Include="Namotion.Reflection" Version="1.0.14" />

DynamicApis

static class DynamicApis
Provides dynamic access to framework APIs.
public static bool SupportsDirectoryApis { get; }

Gets a value indicating whether path APIs are available.

public static bool SupportsFileApis { get; }

Gets a value indicating whether file APIs are available.

public static bool SupportsPathApis { get; }

Gets a value indicating whether path APIs are available.

public static bool SupportsXPathApis { get; }

Gets a value indicating whether XPath APIs are available.

public static string DirectoryGetCurrentDirectory()

Gets the current working directory.

public static bool FileExists(string filePath)

Checks whether a file exists.

public static string PathCombine(string path1, string path2)

Combines two paths.

public static string PathGetDirectoryName(string filePath)

Gets the directory path of a file path.

public static object XPathEvaluate(XDocument document, string path)

Evaluates the XPath for a given XML document.