コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ MediaVersionTimestamp.GetHashCode();
         hashCode = (hashCode * 397) ^ MediaWidth.GetHashCode();
         hashCode = (hashCode * 397) ^ MediaHeight.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)MediaLength;
         hashCode = (hashCode * 397) ^ MediaFps.GetHashCode();
         return(hashCode);
     }
 }
コード例 #2
0
        public bool Equals([CanBeNull] CitpMediaInformation other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(base.Equals(other) && MediaVersionTimestamp.Equals(other.MediaVersionTimestamp) &&
                   MediaWidth == other.MediaWidth && MediaHeight == other.MediaHeight && MediaLength == other.MediaLength &&
                   MediaFps == other.MediaFps);
        }