public override int GetHashCode() { unchecked { var result = Language.GetHashCode(); result = (result * 397) ^ Name.GetHashCode(); result = (result * 397) ^ Filepath.GetHashCode(); result = (result * 397) ^ _internalConfigList.GetHashCode(); return(result); } }
// mandatory since ModuleCacheKey is used as a dictionnary key public override int GetHashCode() { int hashcode = Name.GetHashCode() ^ Flags.GetHashCode(); if (Filepath != null) { hashcode ^= Filepath.GetHashCode(); } return(hashcode); }
/// <summary> /// /// </summary> /// <returns></returns> private StringBuilder GetThumbPath() { if (Tag.Pictures.Length == 0) { return(null); } StringBuilder targetFilePath = null; foreach (TagLib.IPicture pic in Tag.Pictures) { if (pic.Type == TagLib.PictureType.FrontCover) { targetFilePath = new StringBuilder(ThumbFileDir); targetFilePath.Append(Filepath.GetHashCode().ToString("x")); // 拡張子決定 targetFilePath.Append(".").Append(pic.MimeType.Substring(6)); } } return(targetFilePath); }
public override int GetHashCode() { return(Filepath.GetHashCode() ^ RunIndex.GetHashCode()); }