Name of Member with associated Generic parameterss
Inheritance: String_OR_InvokeMemberName
Ejemplo n.º 1
0
        private bool EqualsHelper(InvokeMemberName other)
        {
            var tGenArgs      = GenericArgs;
            var tOtherGenArgs = other.GenericArgs;


            return(Equals(other.Name, Name) &&
                   !(other.IsSpecialName ^ IsSpecialName) &&
                   !(tOtherGenArgs == null ^ tGenArgs == null) &&
                   (tGenArgs == null ||
                    //Exclusive Or makes sure this doesn't happen
// ReSharper disable AssignNullToNotNullAttribute
                    tGenArgs.SequenceEqual(tOtherGenArgs)));
// ReSharper restore AssignNullToNotNullAttribute
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Equalses the specified other.
 /// </summary>
 /// <param name="other">The other.</param>
 /// <returns></returns>
 public bool Equals(InvokeMemberName other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return EqualsHelper(other);
 }
Ejemplo n.º 3
0
        private bool EqualsHelper(InvokeMemberName other)
        {
            var tGenArgs = GenericArgs;
            var tOtherGenArgs = other.GenericArgs;

            return Equals(other.Name, Name)
                && !(other.IsSpecialName ^ IsSpecialName)
                && !(tOtherGenArgs == null ^ tGenArgs == null)
                && (tGenArgs == null ||
                //Exclusive Or makes sure this doesn't happen
            // ReSharper disable AssignNullToNotNullAttribute
                tGenArgs.SequenceEqual(tOtherGenArgs));
            // ReSharper restore AssignNullToNotNullAttribute
        }