EasySign BETA
Digital Signing Tool
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
SAPTeam.EasySign.UnifiedPath.OSPath Class Reference

Represents an operating system path and provides methods for path conversion and manipulation. More...

Public Member Functions

 OSPath (string text)
 Initializes a new instance of the OSPath class with the specified text.
 
override string ToString ()
 
bool Contains (OSPath path)
 Determines whether the current path contains the specified path.
 

Static Public Member Functions

static implicit operator OSPath (string text)
 Implicitly converts a string to an OSPath.
 
static implicit operator string (OSPath path)
 Implicitly converts an OSPath to a string.
 
static OSPath operator+ (OSPath left, OSPath right)
 Concatenates two paths.
 
static OSPath operator- (OSPath left, OSPath right)
 Removes the specified path from the current path.
 

Static Public Attributes

static readonly OSPath Empty = ""
 Represents an empty OSPath.
 

Properties

static bool IsWindows [get]
 Gets a value indicating whether the current operating system is Windows.
 
string Text [get]
 Gets the original path text.
 
string Normalized [get]
 Gets the normalized path based on the current operating system.
 
string Windows [get]
 Gets the Windows-style path.
 
string Unix [get]
 Gets the Unix-style path.
 
OSPath Relative [get]
 Gets the path without the root or drive letter.
 
bool IsAbsolute [get]
 Gets a value indicating whether the path is absolute.
 
bool IsRooted [get]
 Gets a value indicating whether the path is rooted.
 
bool HasVolume [get]
 Gets a value indicating whether the path has a drive letter.
 
OSPath Simplified [get]
 Gets the rooted path without the drive letter.
 
OSPath Parent [get]
 Gets the parent directory of the path.
 

Detailed Description

Represents an operating system path and provides methods for path conversion and manipulation.

Definition at line 8 of file OSPath.cs.

Constructor & Destructor Documentation

◆ OSPath()

SAPTeam.EasySign.UnifiedPath.OSPath.OSPath ( string text)

Initializes a new instance of the OSPath class with the specified text.

Parameters
textThe path text.

Member Function Documentation

◆ Contains()

bool SAPTeam.EasySign.UnifiedPath.OSPath.Contains ( OSPath path)

Determines whether the current path contains the specified path.

Parameters
pathThe path to check.
Returns
true if the current path contains the specified path; otherwise, false.

◆ operator OSPath()

static implicit SAPTeam.EasySign.UnifiedPath.OSPath.operator OSPath ( string text)
static

Implicitly converts a string to an OSPath.

Parameters
textThe path text.

◆ operator string()

static implicit SAPTeam.EasySign.UnifiedPath.OSPath.operator string ( OSPath path)
static

Implicitly converts an OSPath to a string.

Parameters
pathThe OSPath instance.

◆ operator+()

static OSPath SAPTeam.EasySign.UnifiedPath.OSPath.operator+ ( OSPath left,
OSPath right )
static

Concatenates two paths.

Parameters
leftThe left path.
rightThe right path.
Returns
The concatenated path.

◆ operator-()

static OSPath SAPTeam.EasySign.UnifiedPath.OSPath.operator- ( OSPath left,
OSPath right )
static

Removes the specified path from the current path.

Parameters
leftThe current path.
rightThe path to remove.
Returns
The resulting path after removal.

◆ ToString()

override string SAPTeam.EasySign.UnifiedPath.OSPath.ToString ( )

Member Data Documentation

◆ Empty

readonly OSPath SAPTeam.EasySign.UnifiedPath.OSPath.Empty = ""
static

Represents an empty OSPath.

Definition at line 13 of file OSPath.cs.

Property Documentation

◆ HasVolume

bool SAPTeam.EasySign.UnifiedPath.OSPath.HasVolume
get

Gets a value indicating whether the path has a drive letter.

Definition at line 79 of file OSPath.cs.

◆ IsAbsolute

bool SAPTeam.EasySign.UnifiedPath.OSPath.IsAbsolute
get

Gets a value indicating whether the path is absolute.

Definition at line 69 of file OSPath.cs.

◆ IsRooted

bool SAPTeam.EasySign.UnifiedPath.OSPath.IsRooted
get

Gets a value indicating whether the path is rooted.

Definition at line 74 of file OSPath.cs.

◆ IsWindows

bool SAPTeam.EasySign.UnifiedPath.OSPath.IsWindows
staticget

Gets a value indicating whether the current operating system is Windows.

Definition at line 18 of file OSPath.cs.

◆ Normalized

string SAPTeam.EasySign.UnifiedPath.OSPath.Normalized
get

Gets the normalized path based on the current operating system.

Definition at line 49 of file OSPath.cs.

◆ Parent

OSPath SAPTeam.EasySign.UnifiedPath.OSPath.Parent
get

Gets the parent directory of the path.

Definition at line 89 of file OSPath.cs.

◆ Relative

OSPath SAPTeam.EasySign.UnifiedPath.OSPath.Relative
get

Gets the path without the root or drive letter.

Definition at line 64 of file OSPath.cs.

◆ Simplified

OSPath SAPTeam.EasySign.UnifiedPath.OSPath.Simplified
get

Gets the rooted path without the drive letter.

Definition at line 84 of file OSPath.cs.

◆ Text

string SAPTeam.EasySign.UnifiedPath.OSPath.Text
getprotected

Gets the original path text.

Definition at line 44 of file OSPath.cs.

◆ Unix

string SAPTeam.EasySign.UnifiedPath.OSPath.Unix
get

Gets the Unix-style path.

Definition at line 59 of file OSPath.cs.

◆ Windows

string SAPTeam.EasySign.UnifiedPath.OSPath.Windows
get

Gets the Windows-style path.

Definition at line 54 of file OSPath.cs.


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