public static void AddPath(string name, string path, bool forceBundle = false)
 {
     lock (Locker)
     {
         var bp = new BasicPath(name, path) {ForceBundle = forceBundle};
         if (!Paths.Contains(bp))
         {
             Paths.Add(bp);
         }
     }            
 }    
 public static void AddPath(string name, string path, bool forceBundle = false)
 {
     lock (Locker)
     {
         var bp = new BasicPath(name, path)
         {
             ForceBundle = forceBundle
         };
         if (!Paths.Contains(bp))
         {
             Paths.Add(bp);
         }
     }
 }
Exemple #3
0
	    protected bool Equals(BasicPath other)
	    {
	        return string.Equals(Name, other.Name, StringComparison.InvariantCultureIgnoreCase)
	               && string.Equals(Path, other.Path, StringComparison.InvariantCultureIgnoreCase);
	    }
 protected bool Equals(BasicPath other)
 {
     return(string.Equals(Name, other.Name, StringComparison.InvariantCultureIgnoreCase) &&
            string.Equals(Path, other.Path, StringComparison.InvariantCultureIgnoreCase));
 }