public bool Equals(ObscuredString value, StringComparison comparisonType) { if (value == (ObscuredString)null) { return(false); } return(string.Equals(this.InternalDecrypt(), value.InternalDecrypt(), comparisonType)); }
public bool Equals(ObscuredString value, StringComparison comparisonType) { string b = null; if (value != null) { b = value.InternalDecrypt(); } return(string.Equals(InternalDecrypt(), b, comparisonType)); }
public bool Equals(ObscuredString value) { if (value == null) { return(false); } if (this.currentCryptoKey == value.currentCryptoKey) { return(ObscuredString.ArraysEquals(this.hiddenValue, value.hiddenValue)); } return(string.Equals(this.InternalDecrypt(), value.InternalDecrypt())); }
public bool Equals(ObscuredString value, StringComparison comparisonType) { return(!(value == null) && string.Equals(this.InternalDecrypt(), value.InternalDecrypt(), comparisonType)); }
public bool Equals(ObscuredString PDGAOEAMDCL, StringComparison DAOPCOOFOAB) => !(PDGAOEAMDCL == (ObscuredString)null) && string.Equals(this.InternalDecrypt(), PDGAOEAMDCL.InternalDecrypt(), DAOPCOOFOAB);
public bool Equals(ObscuredString PDGAOEAMDCL) { if (PDGAOEAMDCL == (ObscuredString)null) { return(false); } return(this.currentCryptoKey == PDGAOEAMDCL.currentCryptoKey ? ObscuredString.ArraysEquals(this.hiddenValue, PDGAOEAMDCL.hiddenValue) : string.Equals(this.InternalDecrypt(), PDGAOEAMDCL.InternalDecrypt())); }
/// <summary> /// Determines whether this string and a specified ObscuredString object have the same value. A parameter specifies the culture, case, and sort rules used in the comparison. /// </summary> /// /// <returns> /// true if the value of the <paramref name="value"/> parameter is the same as this string; otherwise, false. /// </returns> /// <param name="value">An ObscuredString to compare.</param><param name="comparisonType">A value that defines the type of comparison. </param><exception cref="T:System.ArgumentException"><paramref name="comparisonType"/> is not a <see cref="T:System.StringComparison"/> value. </exception><filterpriority>2</filterpriority> public bool Equals(ObscuredString value, StringComparison comparisonType) { string strA = null; if (value != null) strA = value.InternalDecrypt(); return string.Equals(InternalDecrypt(), strA, comparisonType); }