Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((ModuleName != null ? ModuleName.GetHashCode() : 0) * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0));
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int prime  = 31;
            int result = 1;

            result = prime * result + ((Locator == null) ? 0 : Locator.GetHashCode());
            result = prime * result + ((ModuleName == null) ? 0 : ModuleName.GetHashCode());
            return(result);
        }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = 17;
         hash = hash * 23 + ModuleName.GetHashCode();
         hash = hash * 23 + LibraryPath.GetHashCode();
         hash = hash * 23 + LibraryPath.GetHashCode();
         return(hash);
     }
 }
Ejemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TimestampSec != 0D)
            {
                hash ^= TimestampSec.GetHashCode();
            }
            if (ModuleName.Length != 0)
            {
                hash ^= ModuleName.GetHashCode();
            }
            if (SequenceNum != 0)
            {
                hash ^= SequenceNum.GetHashCode();
            }
            if (LidarTimestamp != 0UL)
            {
                hash ^= LidarTimestamp.GetHashCode();
            }
            if (CameraTimestamp != 0UL)
            {
                hash ^= CameraTimestamp.GetHashCode();
            }
            if (RadarTimestamp != 0UL)
            {
                hash ^= RadarTimestamp.GetHashCode();
            }
            if (Version != 0)
            {
                hash ^= Version.GetHashCode();
            }
            if (status_ != null)
            {
                hash ^= Status.GetHashCode();
            }
            if (FrameId.Length != 0)
            {
                hash ^= FrameId.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 5
0
        public override int GetHashCode()
        {
            var hash = 0;

            if (ModuleName != null)
            {
                hash ^= ModuleName.GetHashCode();
            }

            if (ViewName != null)
            {
                hash ^= ViewName.GetHashCode();
            }

            hash ^= LoadCommand.GetHashCode();

            if (LoadParameter != null)
            {
                hash ^= LoadParameter.GetHashCode();
            }

            return(hash);
        }
Ejemplo n.º 6
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = 17;

                if (LocalPath != null)
                {
                    hash = hash * 23 + LocalPath.GetHashCode();
                }

                if (DllName != null)
                {
                    hash = hash * 23 + DllName.GetHashCode();
                }

                if (ModuleName != null)
                {
                    hash = hash * 23 + ModuleName.GetHashCode();
                }

                return(hash);
            }
        }
Ejemplo n.º 7
0
 public override int GetHashCode()
 {
     return(ModuleName.GetHashCode());
 }