AspectSharp.Lang.AST.MethodSignature.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
		public override bool Equals(object obj)
		{
			MethodSignature otherMethod = obj as MethodSignature;

			if (otherMethod == null)
			{
				return false;
			}

			if (otherMethod.AllRetTypes == AllRetTypes &&
				otherMethod.AllArguments == AllArguments &&
				otherMethod.ArgumentsHashCode() == ArgumentsHashCode() &&
				otherMethod.MethodName.Equals(MethodName) &&
				otherMethod.RetType.Equals(RetType) &&
				otherMethod.Access.Equals(Access))
			{
				return true;
			}

			return false;
		}