bovender framework
C# framework that implements MVVM and more
Bovender.PathHelpers Class Reference

Static Public Member Functions

static string GetDirectoryPart (string path)
 Extracts the directory information from path . More...
 
static string GetFileNamePart (string path)
 Extracts the file name from path . More...
 

Detailed Description

Definition at line 26 of file PathHelpers.cs.

Member Function Documentation

static string Bovender.PathHelpers.GetDirectoryPart ( string  path)
inlinestatic

Extracts the directory information from path .

If path is an existing directory, the entire path will be returned. Otherwise, the return value of System.IO.Path.GetDirectoryName() will be returned.

Parameters
pathPath to examine.
Returns
path or result of System.IO.Path.GetFileName().

Definition at line 38 of file PathHelpers.cs.

static string Bovender.PathHelpers.GetFileNamePart ( string  path)
inlinestatic

Extracts the file name from path .

If path is an existing directory, an empty string will be returned. Otherwise, the return value of System.IO.Path.GetFileName() will be returned.

Parameters
pathPath to examine.
Returns
String.Empty or return value of System.IO.Path.GetFileName().

Definition at line 62 of file PathHelpers.cs.


The documentation for this class was generated from the following file: