public override int GetHashCode() { int hashcode = 157; unchecked { hashcode = (hashcode * 397) + IdAlbum.GetHashCode(); if (__isset.title) { hashcode = (hashcode * 397) + Title.GetHashCode(); } if (__isset.coverPath) { hashcode = (hashcode * 397) + CoverPath.GetHashCode(); } if (__isset.releaseDate) { hashcode = (hashcode * 397) + ReleaseDate.GetHashCode(); } if (__isset.gender) { hashcode = (hashcode * 397) + Gender.GetHashCode(); } if (__isset.isSingle) { hashcode = (hashcode * 397) + IsSingle.GetHashCode(); } } return(hashcode); }
public new XElement ToXML() { XElement metadataXML = base.ToXML(); if (!string.IsNullOrEmpty(Path)) { metadataXML.Add(new XElement("Path", Path)); } if (!string.IsNullOrEmpty(Genre)) { metadataXML.Add(new XElement("Genre", Genre)); } if (Contributors != null) { XElement contributorsXML = Contributors.ToXML(); if (contributorsXML != null) { metadataXML.Add(contributorsXML); } } if (!string.IsNullOrEmpty(ReleaseYear)) { metadataXML.Add(new XElement("ReleaseYear", ReleaseYear)); } if (!CoverPath.Equals(StandardCover)) { metadataXML.Add(new XElement("Cover", CoverPath)); } return(metadataXML); }