Esempio n. 1
0
 /// <summary>
 /// Gets a value that indicates whether the provided object is equal to
 /// this object.
 /// </summary>
 /// <param name="other">
 /// A  <see cref="ParameterizedStringPartLiteral"/> object.
 /// </param>
 /// <returns>
 /// <c>true</c> if the provided object is equals to this object; otherwise,
 /// <c>false</c>.</returns>
 public bool Equals(ParameterizedStringPartLiteral other)
 {
     if ((object)other == null)
     {
         return(false);
     }
     return(other.value == value);
 }
Esempio n. 2
0
        /// <summary>
        /// Gets a value that indicates whether the provided object is equal to
        /// this object.
        /// </summary>
        /// <param name="obj">
        /// An object that can be cast to a <see cref="ParameterizedStringPartLiteral"/>
        /// object.
        /// </param>
        /// <returns>
        /// <c>true</c> if the provided object is equals to this object; otherwise,
        /// <c>false</c>.</returns>
        public override bool Equals(object obj)
        {
            ParameterizedStringPartLiteral p = obj as ParameterizedStringPartLiteral;

            if ((object)p == null)
            {
                return(false);
            }

            return(p.value == value);
        }
 /// <summary>
 /// Gets a value that indicates whether the provided object is equal to
 /// this object.
 /// </summary>
 /// <param name="other">
 /// A  <see cref="ParameterizedStringPartLiteral"/> object.
 /// </param>
 /// <returns>
 /// <c>true</c> if the provided object is equals to this object; otherwise,
 /// <c>false</c>.</returns>
 public bool Equals(ParameterizedStringPartLiteral other) {
   if ((object) other == null) {
     return false;
   }
   return other.value == value;
 }