Horje
how to get relative path in c# Code Example
how to get relative path in c#
Uri file = new Uri(@"c:\foo\bar\blop\blap.txt");
// Must end in a slash to indicate folder
Uri folder = new Uri(@"c:\foo\bar\");
string relativePath = 
Uri.UnescapeDataString(
    folder.MakeRelativeUri(file)
        .ToString()
        .Replace('/', Path.DirectorySeparatorChar)
    );




Csharp

Related
c# get list object type of generic list Code Example c# get list object type of generic list Code Example
c# Returning Strings Code Example c# Returning Strings Code Example
c# split large file into chunks Code Example c# split large file into chunks Code Example
git find commits by message Code Example git find commits by message Code Example
datatable to array c# Code Example datatable to array c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11