コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Bandwidth.GetHashCode();
         hashCode = (hashCode * 397) ^ MinBufferTime.GetHashCode();
         hashCode = (hashCode * 397) ^ Stream.GetHashCode();
         return(hashCode);
     }
 }
コード例 #2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("\nMetaData Configuration:");
            sb.AppendLine("\tStream         = " + Stream);
            sb.AppendLine("\tBandwidth      = " + (Bandwidth.HasValue ? Bandwidth.ToString() : "N/A"));
            sb.AppendLine("\tMinBufferTime  = " + (MinBufferTime.HasValue ? MinBufferTime.ToString() : "N/A"));
            sb.AppendLine("\tBufferDuration = " + BufferDuration);

            return(sb.ToString());
        }
コード例 #3
0
 public bool Equals(BufferStreamConfig other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Bandwidth == other.Bandwidth &&
            MinBufferTime.Equals(other.MinBufferTime) &&
            Stream.Equals(other.Stream));
 }