Mono.CSharp.MemberName.Equals C# (CSharp) Method

Equals() public method

public Equals ( MemberName other ) : bool
other MemberName
return bool
		public bool Equals (MemberName other)
		{
			if (this == other)
				return true;
			if (other == null || Name != other.Name)
				return false;
			if (is_double_colon != other.is_double_colon)
				return false;

			if ((TypeArguments != null) &&
			    (other.TypeArguments == null || TypeArguments.Count != other.TypeArguments.Count))
				return false;

			if ((TypeArguments == null) && (other.TypeArguments != null))
				return false;

			if (Left == null)
				return other.Left == null;

			return Left.Equals (other.Left);
		}

Same methods

MemberName::Equals ( object other ) : bool

Usage Example

Example #1
0
        public bool Equals(MemberName other)
        {
            if (this == other)
            {
                return(true);
            }
            if (other == null || Name != other.Name)
            {
                return(false);
            }

            if ((TypeParameters != null) &&
                (other.TypeParameters == null || TypeParameters.Count != other.TypeParameters.Count))
            {
                return(false);
            }

            if ((TypeParameters == null) && (other.TypeParameters != null))
            {
                return(false);
            }

            if (Left == null)
            {
                return(other.Left == null);
            }

            return(Left.Equals(other.Left));
        }
All Usage Examples Of Mono.CSharp.MemberName::Equals