/// <summary> /// Return true if this and the <paramref name="other"/> share the same directory /// or if <paramref name="other"/> is in a sub directory beneath this /// </summary> /// <param name="other"></param> /// <returns></returns> public virtual bool SharesPath(WorldFactoryResource other) { return(other.GetPath().StartsWith(GetPath(), StringComparison.CurrentCultureIgnoreCase)); }