ToPathString() public method

Returns this ID represented as a path-safe string.
public ToPathString ( ) : string
return string
Esempio n. 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);
 }
Esempio n. 2
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));
 }