ToPathString() public méthode

Returns this ID represented as a path-safe string.
public ToPathString ( ) : string
Résultat string
Exemple #1
0
 /// <summary>
 /// Where should we save a particular value?
 /// </summary>
 /// <param name="key"></param>
 /// <param name="hash"></param>
 /// <returns></returns>
 private string PathFor(ID key, ID hash)
 {
     return Path.Combine(Path.Combine(storageRoot, key.ToPathString()), hash.ToPathString() + DATA_EXTENSION);
 }
 /// <summary>
 /// Where should we save a particular value?
 /// </summary>
 /// <param name="key"></param>
 /// <param name="hash"></param>
 /// <returns></returns>
 private string PathFor(ID key, ID hash)
 {
     return(Path.Combine(Path.Combine(storageRoot, key.ToPathString()), hash.ToPathString() + DATA_EXTENSION));
 }