/// <summary>
 /// Compares the index location based on it's path
 /// </summary>
 public virtual bool Equals(IIndexLocation other)
 {
     if (other == null)
     {
         return false;
     }
     return other.GetPath().Equals(this.GetPath(), StringComparison.InvariantCultureIgnoreCase);
 }
Esempio n. 2
0
 /// <summary>
 /// Compares the index location based on it's path
 /// </summary>
 public virtual bool Equals(IIndexLocation other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.GetPath().Equals(this.GetPath(), StringComparison.InvariantCultureIgnoreCase));
 }
        /// <summary>
        /// Creates a DirectoryInfo object from the index location's path
        /// </summary>
        /// <param name="location">The index location</param>
        /// <returns>DirectoryInfo</returns>
        public static DirectoryInfo GetDirectory(this IIndexLocation location)
        {
            if (location == null)
            {
                throw new ArgumentNullException("location");
            }

            return(new DirectoryInfo(location.GetPath()));
        }