コード例 #1
0
 public static ResourcePath Combine(ResourcePath rootPath, string path)
 {
     return(ResourcePath.Deserialize(Combine(rootPath.Serialize(), path)));
 }
コード例 #2
0
 public int CompareTo(ResourcePath other)
 {
     return(Serialize().CompareTo(other.Serialize()));
 }
コード例 #3
0
 /// <summary>
 /// Returns a <see cref="ResourcePath"/> pointing to the local file system using the given <paramref name="providerPath"/>.
 /// </summary>
 /// <param name="providerPath">Path which must be valid inside the local filesystem provider.</param>
 /// <returns>Resource path to the given path.</returns>
 public static ResourcePath GetResourcePath(string providerPath)
 {
     return(ResourcePath.BuildBaseProviderPath(LOCAL_FS_RESOURCE_PROVIDER_ID, providerPath));
 }
コード例 #4
0
 static void OnResourcePathObjectsPruned(ILRUCache <ResourcePath, IResourceAccessor> sender, ResourcePath key, IResourceAccessor value)
 {
     value.Dispose();
 }
コード例 #5
0
 public static string GetFileNameWithoutExtension(ResourcePath rp)
 {
     return(GetFileNameWithoutExtension(UnrollPathSegments(rp).Last()));
 }