Class UriUtils
Utility functions for operating on Uris
Inheritance
object
UriUtils
Namespace: i5.Toolkit.Core.Utilities
Assembly: cs.temp.dll.dll
Methods
Declaration
public static string DictionaryToParameterString<T>(Dictionary<string, T> dictionary)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.Dictionary<TKey, TValue><string, T> |
dictionary |
|
Returns
Type Parameters
Declaration
public static Dictionary<string, string> GetUriFragments(Uri uri)
Parameters
| Type |
Name |
Description |
| Uri |
uri |
|
Returns
| Type |
Description |
| System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
|
Extracts the parameters of a given uri and returns them
Declaration
public static Dictionary<string, string> GetUriParameters(Uri uri)
Parameters
| Type |
Name |
Description |
| Uri |
uri |
The uri which contains the parameters
|
Returns
| Type |
Description |
| System.Collections.Generic.Dictionary<TKey, TValue><string, string> |
Returns the parameters of the uri
|
Rewrites a given URI that points to a file so that it points to the location specified by the relative file path
The relative file path starts at the uri's destination
Declaration
public static string RewriteFileUriPath(Uri uri, string relativeFilePath)
Parameters
| Type |
Name |
Description |
| Uri |
uri |
The uri which should be rewritten
|
| string |
relativeFilePath |
A relative file path starting at uri's location
|
Returns
| Type |
Description |
| string |
Returns an absolute Uri which points to the location of the relative file path
|
Declaration
public static string WordArrayToSpaceEscapedString(string[] array)
Parameters
| Type |
Name |
Description |
| string[] |
array |
|
Returns