示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (File != null ? File.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ParsedSuccessfully.GetHashCode();
         hashCode = (hashCode * 397) ^ LastWriteTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (BaseDirectory != null ? BaseDirectory.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Types != null ? Types.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Includes != null ? Includes.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Directory?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (FileName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (CompletePath?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Size.GetHashCode();
         hashCode = (hashCode * 397) ^ CreationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ LastWriteTime.GetHashCode();
         hashCode = (hashCode * 397) ^ LastAccessTime.GetHashCode();
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = Directory != null?Directory.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (FileName != null ? FileName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (CompletePath != null ? CompletePath.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Size.GetHashCode();
                hashCode = (hashCode * 397) ^ CreationTime.GetHashCode();
                hashCode = (hashCode * 397) ^ LastWriteTime.GetHashCode();
                hashCode = (hashCode * 397) ^ LastAccessTime.GetHashCode();
                return(hashCode);
            }
        }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = (Code != null ? Code.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Existed.GetHashCode();
         hashCode = (hashCode * 397) ^ (Text != null ? Text.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ LastWriteTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (Owner != null ? Owner.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Editor != null ? Editor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Published.GetHashCode();
         hashCode = (hashCode * 397) ^ (Locker != null ? Locker.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#5
0
文件: BaseDir.cs 项目: ivannp/cync
        public override int GetHashCode()
        {
            int hash = 1;

            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (Attributes != 0)
            {
                hash ^= Attributes.GetHashCode();
            }
            if (CreationTime != 0L)
            {
                hash ^= CreationTime.GetHashCode();
            }
            if (LastAccessTime != 0L)
            {
                hash ^= LastAccessTime.GetHashCode();
            }
            if (LastWriteTime != 0L)
            {
                hash ^= LastWriteTime.GetHashCode();
            }
            if (Length != 0UL)
            {
                hash ^= Length.GetHashCode();
            }
            if (Checksum.Length != 0)
            {
                hash ^= Checksum.GetHashCode();
            }
            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }