private bool Equals(BookFormat other) { return(this.extension.Equals(other.extension, StringComparison.CurrentCultureIgnoreCase) && this.Name.Equals(other.Name, StringComparison.CurrentCultureIgnoreCase)); }
/// <summary> /// Create the book based off the existing file /// </summary> /// <param name="title">Title, without extension</param> /// <param name="format">Book format</param> /// <param name="filePath">Filesystem path to the book</param> public Book(string title, BookFormat format, string filePath) { this.Title = title; this.Format = format; this.FilePath = filePath; }