예제 #1
0
 public bool Equals(VideoFileInformationModel other)
 {
     return(string.Equals(FullPath, other.FullPath) && string.Equals(Filename, other.Filename) &&
            string.Equals(Extension, other.Extension) && string.Equals(FormatName, other.FormatName) &&
            string.Equals(BitRate, other.BitRate) && FileSize == other.FileSize &&
            DurationInSecs.Equals(other.DurationInSecs) && VideoStream.Equals(other.VideoStream) &&
            AudioStream.Equals(other.AudioStream));
 }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (FullPath != null ? FullPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Filename != null ? Filename.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Extension != null ? Extension.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FormatName != null ? FormatName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BitRate != null ? BitRate.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ FileSize.GetHashCode();
         hashCode = (hashCode * 397) ^ DurationInSecs.GetHashCode();
         hashCode = (hashCode * 397) ^ VideoStream.GetHashCode();
         hashCode = (hashCode * 397) ^ AudioStream.GetHashCode();
         return(hashCode);
     }
 }