Пример #1
0
 public ResourceUrl(Assembly assembly, params string[] path) : this(path)
 {
     string name = assembly.GetName().Name;
     if (this.url.StartsWith("/"))
     {
         this.url = "assembly:" + name + ";" + this.url.Substring(1);
     }
     else
     {
         this.url = name + "/" + this.url;
     }
     this.url = ResourceUrl.BuildUrl("embedded", this.url);
 }
Пример #2
0
 internal ResourceUrl(string scheme, string path)
 {
     this.url = ResourceUrl.BuildUrl(scheme, path);
 }