/// <summary> /// Creates a clone of this VBR object /// </summary> /// <returns>a new instance with the same settings</returns> public object Clone() { VBR vbr = new VBR(); vbr.MaxBitRate = this.MaxBitRate; vbr.MinBitRate = this.MinBitRate; return(vbr); }
/// <summary> /// Determines if <c>this</c> is equal to the specified object. /// </summary> /// <remarks>Does not compare Enabled status.</remarks> /// <param name="obj">object to compare</param> /// <returns>true if this and obj are equal, false if not</returns> public override bool Equals(object obj) { VBR rhs = obj as VBR; if (((object)rhs) == null) { return(false); } return((this.MaxBitRate == rhs.MaxBitRate) && (this.MinBitRate == rhs.MinBitRate)); }