/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false. /// </returns> public override bool Equals(SigType other) { GenericInstSigType gist = other as GenericInstSigType; if (gist == null) { return(false); } // TEMP if (!base.Equals(other)) { return(false); } if (this.baseType != gist.baseType) { return(false); } if (!SigType.Equals(this.genericArguments, gist.genericArguments)) { return(false); } // END TEMP return(base.Equals(other) && this.baseType == gist.baseType && SigType.Equals(this.genericArguments, gist.genericArguments)); }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false. /// </returns> public override bool Equals(SigType other) { GenericInstSigType gist = other as GenericInstSigType; if (null == gist) { return(false); } return(base.Equals(other) && _baseType == gist._baseType && SigType.Equals(_genericArgs, gist._genericArgs)); }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false. /// </returns> public override bool Equals(SigType other) { SZArraySigType szast = other as SZArraySigType; if (szast == null) { return(false); } return(base.Equals(other) == true && _elementType.Equals(szast._elementType) && CustomMod.Equals(_customMods, szast._customMods)); }