public override int GetHashCode() { unchecked { var hashCode = Bandwidth.GetHashCode(); hashCode = (hashCode * 397) ^ MinBufferTime.GetHashCode(); hashCode = (hashCode * 397) ^ Stream.GetHashCode(); return(hashCode); } }
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()); }
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)); }