コード例 #1
0
ファイル: ObscuredString.cs プロジェクト: zunaalabaya/TAC-BOT
 public bool Equals(ObscuredString value, StringComparison comparisonType)
 {
     if (value == (ObscuredString)null)
     {
         return(false);
     }
     return(string.Equals(this.InternalDecrypt(), value.InternalDecrypt(), comparisonType));
 }
コード例 #2
0
        public bool Equals(ObscuredString value, StringComparison comparisonType)
        {
            string b = null;

            if (value != null)
            {
                b = value.InternalDecrypt();
            }
            return(string.Equals(InternalDecrypt(), b, comparisonType));
        }
コード例 #3
0
 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()));
 }
コード例 #4
0
 public bool Equals(ObscuredString value, StringComparison comparisonType)
 {
     return(!(value == null) && string.Equals(this.InternalDecrypt(), value.InternalDecrypt(), comparisonType));
 }
コード例 #5
0
 public bool Equals(ObscuredString PDGAOEAMDCL, StringComparison DAOPCOOFOAB) => !(PDGAOEAMDCL == (ObscuredString)null) && string.Equals(this.InternalDecrypt(), PDGAOEAMDCL.InternalDecrypt(), DAOPCOOFOAB);
コード例 #6
0
 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()));
 }
コード例 #7
0
		/// <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);
		}