//========================================================================================== /// <summary> /// Returns a value indicating whether this instance is equal to a specified object. /// </summary> /// <param name="obj"> /// An object to compare with this instance. /// </param> /// <returns> /// <see langword="true"/> if <paramref name="obj"/> is a object that represents the same as the current; otherwise, <see langword="false"/>. /// </returns> public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj.GetType() != this.GetType()) { return(false); } AviInputSession other = (AviInputSession)obj; return(Equals(other)); }
//========================================================================================== /// <summary> /// Returns a value indicating whether this instance is equal to the specified instance. /// </summary> /// <param name="other"> /// An AviInputSession instance to compare to this instance.</param> /// <returns> /// <see langword="true"/> if the other parameter equals the value of this instance; otherwise, <see langword="false"/>. /// </returns> public bool Equals(AviInputSession other) { return(other != null && _session == other._session); }